contactengine/mainwindow.h
author John Kern <johnk@symbian.org>
Thu, 16 Sep 2010 10:59:11 -0700
changeset 49 d9d4ea56179a
parent 34 93c5a58496b6
permissions -rwxr-xr-x
added a listview to support orange lab fw
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
     1
#ifndef MAINWINDOW_H
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
     2
#define MAINWINDOW_H
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
     3
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
     4
#include <QMainWindow>
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
     5
#include "contactsengine.h"
34
93c5a58496b6 add graphics view which presents contacts details
John Kern <johnk@symbian.org>
parents: 30
diff changeset
     6
#include "detailsgv.h"
19
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
     7
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
     8
namespace Ui {
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
     9
    class MainWindow;
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    10
}
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    11
49
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents: 34
diff changeset
    12
// If you are building this as a stand alone app (ie, not using the Orange Labs FW),
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents: 34
diff changeset
    13
// use this class.
d9d4ea56179a added a listview to support orange lab fw
John Kern <johnk@symbian.org>
parents: 34
diff changeset
    14
19
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    15
class MainWindow : public QMainWindow
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    16
{
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    17
    Q_OBJECT
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    18
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    19
public:
34
93c5a58496b6 add graphics view which presents contacts details
John Kern <johnk@symbian.org>
parents: 30
diff changeset
    20
    // this enum is used as in index for the QStackedWidget.
93c5a58496b6 add graphics view which presents contacts details
John Kern <johnk@symbian.org>
parents: 30
diff changeset
    21
    enum {EListPage = 0, // lists of contacts
93c5a58496b6 add graphics view which presents contacts details
John Kern <johnk@symbian.org>
parents: 30
diff changeset
    22
          EDetailsGV}; // presents list of details for a contact based on Graphics View
93c5a58496b6 add graphics view which presents contacts details
John Kern <johnk@symbian.org>
parents: 30
diff changeset
    23
19
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    24
    explicit MainWindow(QWidget *parent = 0);
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    25
    ~MainWindow();
30
33e489bb7487 add options menu
John Kern <johnk@symbian.org>
parents: 25
diff changeset
    26
    void createMenus();
19
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    27
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    28
public slots:
25
adbe71832e2b runs on-device now; testing on 5800
John Kern <johnk@symbian.org>
parents: 23
diff changeset
    29
    void errorOccurred(QString errMsg);
30
33e489bb7487 add options menu
John Kern <johnk@symbian.org>
parents: 25
diff changeset
    30
    void displayVersion();
34
93c5a58496b6 add graphics view which presents contacts details
John Kern <johnk@symbian.org>
parents: 30
diff changeset
    31
    void displayDetails();
93c5a58496b6 add graphics view which presents contacts details
John Kern <johnk@symbian.org>
parents: 30
diff changeset
    32
    void displayList();
19
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    33
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    34
private:
34
93c5a58496b6 add graphics view which presents contacts details
John Kern <johnk@symbian.org>
parents: 30
diff changeset
    35
    DetailsGV *details;
93c5a58496b6 add graphics view which presents contacts details
John Kern <johnk@symbian.org>
parents: 30
diff changeset
    36
    QAction *detailsAction;
30
33e489bb7487 add options menu
John Kern <johnk@symbian.org>
parents: 25
diff changeset
    37
    QAction *verAction;
33e489bb7487 add options menu
John Kern <johnk@symbian.org>
parents: 25
diff changeset
    38
    QAction *exitAction;
34
93c5a58496b6 add graphics view which presents contacts details
John Kern <johnk@symbian.org>
parents: 30
diff changeset
    39
19
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    40
    Ui::MainWindow *ui;
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    41
    ContactsEngine *ce;
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    42
};
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    43
e4b6ee329501 WIP: first draft of contact engine
John Kern <johnk@symbian.org>
parents:
diff changeset
    44
#endif // MAINWINDOW_H