viewgit/index.php:465 Only variables should be passed by reference [2048]

viewgit/index.php:466 Non-static method GeSHi::get_language_name_from_extension() should not be called statically [2048]

  1. #ifndef FEEDPOLLER_H
  2. #define FEEDPOLLER_H
  3.  
  4. #include <QObject>
  5. #include <QThread>
  6. #include <QtSql>
  7. #include <QtNetwork>
  8. #include "rssparser.h"
  9. #include "feedmodel.h"
  10.  
  11. namespace Larss {
  12.  
  13. class FeedPoller : public QThread
  14. {
  15. Q_OBJECT
  16. public:
  17. explicit FeedPoller(QObject *parent, RssParser* parser, FeedModel *model);
  18. void queueWork (const QModelIndex& index);
  19. void stopPolling ();
  20.  
  21. signals:
  22. void startLoadingFeed (QString name);
  23. void finishedLoadingFeed (QString name);
  24.  
  25. public slots:
  26. void networkManagerReplyFinished(QNetworkReply* reply);
  27. bool poll();
  28. void queueAll ();
  29.  
  30. private:
  31. /**
  32.   * @brief The parser of this instance of Larss.
  33.   */
  34. RssParser *parser;
  35.  
  36. /**
  37.   * @brief The FeedModel of this instance of Larss.
  38.   */
  39. FeedModel *model;
  40.  
  41. /**
  42.   * @brief The content of the rss loaded from the various
  43.   * items in the feedmodel.
  44.   */
  45. QHash<quint32, QString> *rssContent;
  46.  
  47. /**
  48.   * @brief The NetworkAccessManager that will be used to retrieve
  49.   * the data from sourceUrl.
  50.   */
  51. QNetworkAccessManager *manager;
  52.  
  53. /**
  54.   * @brief An index of the RSS that is currently being loaded, or 0
  55.   * if there is nothing in the queue.
  56.   */
  57. quint32 nowLoading;
  58.  
  59. /**
  60.   * @brief Queue of item that needs to be refreshed.
  61.   */
  62. QList<QModelIndex> *workQueue;
  63.  
  64. /**
  65.   * @brief If the thread is requested to polling or not.
  66.   */
  67. bool poll_active;
  68.  
  69. /**
  70.   * @brief Real work of the thread.
  71.   */
  72. void run();
  73.  
  74. QDateTime pubDateToDateTime (QString pubDate);
  75.  
  76. };
  77. }
  78.  
  79. #endif // FEEDPOLLER_H