~ubuntu-branches/ubuntu/saucy/minitube/saucy-proposed

« back to all changes in this revision

Viewing changes to src/googlesuggest.h

  • Committer: Bazaar Package Importer
  • Author(s): Jakob Haufe
  • Date: 2011-04-03 20:38:04 UTC
  • mfrom: (2.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110403203804-0c51jazcjgb86hzt
Tags: 1.4.1-1
* New upstream version
* Disable update check, makes no sense for a packaged version (Closes:
  #619941)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef GOOGLESUGGEST_H
2
 
#define GOOGLESUGGEST_H
3
 
 
4
 
#include <QtGui>
5
 
 
6
 
class GSuggestCompletion : public QObject {
7
 
    Q_OBJECT
8
 
 
9
 
public:
10
 
    GSuggestCompletion(QWidget *parent, QLineEdit *editor);
11
 
    ~GSuggestCompletion();
12
 
    bool eventFilter(QObject *obj, QEvent *ev);
13
 
    void showCompletion(const QStringList &choices);
14
 
 
15
 
public slots:
16
 
    void doneCompletion();
17
 
    void preventSuggest();
18
 
    void enableSuggest();
19
 
    void autoSuggest();
20
 
    void handleNetworkData(QByteArray response);
21
 
    void currentItemChanged(QListWidgetItem *current);
22
 
 
23
 
private:
24
 
    QWidget *buddy;
25
 
    QLineEdit *editor;
26
 
    QString originalText;
27
 
    QListWidget *popup;
28
 
    QTimer *timer;
29
 
    bool enabled;
30
 
 
31
 
};
32
 
 
33
 
#endif // GOOGLESUGGEST_H