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.  
  23. public slots:
  24. void networkManagerReplyFinished(QNetworkReply* reply);
  25. bool poll();
  26.  
  27. private:
  28. /**
  29.   * @brief The parser of this instance of Larss.
  30.   */
  31. RssParser *parser;
  32.  
  33. /**
  34.   * @brief The FeedModel of this instance of Larss.
  35.   */
  36. FeedModel *model;
  37.  
  38. /**
  39.   * @brief The content of the rss loaded from the various
  40.   * items in the feedmodel.
  41.   */
  42. QHash<quint32, QString> *rssContent;
  43.  
  44. /**
  45.   * @brief The NetworkAccessManager that will be used to retrieve
  46.   * the data from sourceUrl.
  47.   */
  48. QNetworkAccessManager *manager;
  49.  
  50. /**
  51.   * @brief An index of the RSS that is currently being loaded, or 0
  52.   * if there is nothing in the queue.
  53.   */
  54. quint32 nowLoading;
  55.  
  56. /**
  57.   * @brief Queue of item that needs to be refreshed.
  58.   */
  59. QList<QModelIndex> *workQueue;
  60.  
  61. /**
  62.   * @brief If the thread is requested to polling or not.
  63.   */
  64. bool poll_active;
  65.  
  66. /**
  67.   * @brief Real work of the thread.
  68.   */
  69. void run();
  70.  
  71. };
  72. }
  73.  
  74. #endif // FEEDPOLLER_H