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 MAINWINDOW_H
  2. #define MAINWINDOW_H
  3.  
  4. #include <QMainWindow>
  5. #include "rssparser.h"
  6. #include "feedmodel.h"
  7. #include "feedpoller.h"
  8. #include <QSqlDatabase>
  9. #include <QtGui>
  10.  
  11. namespace Ui {
  12. class MainWindow;
  13. }
  14.  
  15. namespace Larss {
  16.  
  17. class MainWindow : public QMainWindow
  18. {
  19. Q_OBJECT
  20.  
  21. public:
  22. explicit MainWindow(QWidget *parent = 0);
  23. ~MainWindow();
  24.  
  25. private slots:
  26. void on_actionExit_activated();
  27.  
  28. void on_feedTreeView_clicked(const QModelIndex &index);
  29.  
  30. void on_newsTableView_clicked(const QModelIndex &index);
  31.  
  32. void on_newsTableView_activated(const QModelIndex &index);
  33.  
  34. void on_actionAdd_Feed_triggered();
  35.  
  36. void on_actionAdd_Category_triggered();
  37.  
  38. void on_actionNext_unread_news_triggered();
  39.  
  40. void on_actionUpdate_this_feed_triggered();
  41.  
  42. void on_feedTreeView_customContextMenuRequested(const QPoint &pos);
  43.  
  44. void removeSelectedFeed ();
  45.  
  46. void removeSelectedCategory ();
  47.  
  48. void on_webView_loadFinished(bool arg1);
  49.  
  50. void on_webView_loadStarted();
  51.  
  52. public slots:
  53. /**
  54.   * @brief Callback for the start of an update of a feed.
  55.   */
  56. void loadingFeedStart (QString feedName);
  57.  
  58. /**
  59.   * @brief Load a feed in the webview.
  60.   */
  61. void loadFeed (const QModelIndex& index);
  62.  
  63. /**
  64.   * @brief Show a notification about new loaded elements.
  65.   */
  66. void showNewElement (QString title, QString body);
  67.  
  68. protected:
  69. bool eventFilter (QObject *object, QEvent *event);
  70. void closeEvent(QCloseEvent *event);
  71.  
  72. private:
  73. Ui::MainWindow *ui;
  74. void do_exit();
  75.  
  76. /**
  77.   * @brief The database used for
  78.   * storing all the feed-related data.
  79.   */
  80. QSqlDatabase db;
  81.  
  82. /**
  83.   * The model describing feeds and categories.
  84.   */
  85. FeedModel *feedModel;
  86.  
  87. /**
  88.   * @brief The model describing the news.
  89.   */
  90. RssParser *rssParser;
  91.  
  92. /**
  93.   * @brief The poller for the news.
  94.   */
  95. FeedPoller *poller;
  96.  
  97. /**
  98.   * @brief A string containing the url to load
  99.   * for the loaded in the webview.
  100.   */
  101. QString loadedNews;
  102.  
  103. /**
  104.   * @brief System tray icon used to show the notifications.
  105.   */
  106. QSystemTrayIcon *systrayIcon;
  107.  
  108.  
  109. void showProgressBar();
  110.  
  111. void hideProgressBar();
  112. };
  113.  
  114. }
  115.  
  116. #endif // MAINWINDOW_H