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. void newElementsNotification (QString title, QString body);
  25.  
  26. public slots:
  27. void networkManagerReplyFinished(QNetworkReply* reply);
  28. bool poll();
  29. void queueAll ();
  30.  
  31. private:
  32. /**
  33.   * @brief The parser of this instance of Larss.
  34.   */
  35. RssParser *parser;
  36.  
  37. /**
  38.   * @brief The FeedModel of this instance of Larss.
  39.   */
  40. FeedModel *model;
  41.  
  42. /**
  43.   * @brief The content of the rss loaded from the various
  44.   * items in the feedmodel.
  45.   */
  46. QHash<quint32, QString> *rssContent;
  47.  
  48. /**
  49.   * @brief The NetworkAccessManager that will be used to retrieve
  50.   * the data from sourceUrl.
  51.   */
  52. QNetworkAccessManager *manager;
  53.  
  54. /**
  55.   * @brief An index of the RSS that is currently being loaded, or 0
  56.   * if there is nothing in the queue.
  57.   */
  58. quint32 nowLoading;
  59.  
  60. /**
  61.   * @brief Queue of item that needs to be refreshed.
  62.   */
  63. QList<QModelIndex> *workQueue;
  64.  
  65. /**
  66.   * @brief If the thread is requested to polling or not.
  67.   */
  68. bool poll_active;
  69.  
  70. /**
  71.   * @brief Real work of the thread.
  72.   */
  73. void run();
  74.  
  75. /**
  76.   * @brief Convert the content of the pubDate tag
  77.   * into a QDateTime object.
  78.   */
  79. QDateTime pubDateToDateTime (QString pubDate);
  80.  
  81. /**
  82.   * @brief The time that the last bubble has been shown.
  83.   */
  84. QDateTime lastShownBubble;
  85.  
  86. /**
  87.   * @brief True if the last bubble shown was of the type
  88.   * "Many news to read, not listing them all".
  89.   */
  90. bool floodedBubbleQueue;
  91.  
  92. };
  93. }
  94.  
  95. #endif // FEEDPOLLER_H