contactengine/mainview.h
author John Kern <johnk@symbian.org>
Thu, 16 Sep 2010 10:59:11 -0700
changeset 49 d9d4ea56179a
permissions -rwxr-xr-x
added a listview to support orange lab fw
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
49
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
     1
#ifndef MAINVIEW_H
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
     2
#define MAINVIEW_H
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
     3
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
     4
#include <QWidget>
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
     5
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
     6
#include <OLButton.h>
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
     7
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
     8
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
     9
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    10
// Use this class with the Orange Labs FW.  Since the FW is full screen
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    11
// it handles many issues QMainWindow does for a standard Qt app.
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    12
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    13
class MainView : public QWidget
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    14
{
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    15
    Q_OBJECT
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    16
public:
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    17
    explicit MainView(QWidget *parent = 0);
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    18
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    19
signals:
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    20
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    21
public slots:
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    22
    void startApp();
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    23
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    24
    // just should all contacts.
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    25
    void showAllContacts();
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    26
    // source the list of contacts by proximity to the phone.
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    27
    void sortByGeo();
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    28
    // show all contacts at a particular event.
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    29
    void showEvents();
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    30
    // show call log
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    31
    void showLogs();
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    32
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    33
private:
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    34
    OLButton* addToolbarButton(const QString& icon, const QString& text);
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    35
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    36
private:
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    37
    int m_count;
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    38
};
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    39
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents:
diff changeset
    40
#endif // MAINVIEW_H