contactengine/mainview.h
changeset 49 d9d4ea56179a
equal deleted inserted replaced
48:863c77d15828 49:d9d4ea56179a
       
     1 #ifndef MAINVIEW_H
       
     2 #define MAINVIEW_H
       
     3 
       
     4 #include <QWidget>
       
     5 
       
     6 #include <OLButton.h>
       
     7 
       
     8 
       
     9 
       
    10 // Use this class with the Orange Labs FW.  Since the FW is full screen
       
    11 // it handles many issues QMainWindow does for a standard Qt app.
       
    12 
       
    13 class MainView : public QWidget
       
    14 {
       
    15     Q_OBJECT
       
    16 public:
       
    17     explicit MainView(QWidget *parent = 0);
       
    18 
       
    19 signals:
       
    20 
       
    21 public slots:
       
    22     void startApp();
       
    23 
       
    24     // just should all contacts.
       
    25     void showAllContacts();
       
    26     // source the list of contacts by proximity to the phone.
       
    27     void sortByGeo();
       
    28     // show all contacts at a particular event.
       
    29     void showEvents();
       
    30     // show call log
       
    31     void showLogs();
       
    32 
       
    33 private:
       
    34     OLButton* addToolbarButton(const QString& icon, const QString& text);
       
    35 
       
    36 private:
       
    37     int m_count;
       
    38 };
       
    39 
       
    40 #endif // MAINVIEW_H