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

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "contactsengine.h"
#include "detailsgv.h"

namespace Ui {
    class MainWindow;
}

// If you are building this as a stand alone app (ie, not using the Orange Labs FW),
// use this class.

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    // this enum is used as in index for the QStackedWidget.
    enum {EListPage = 0, // lists of contacts
          EDetailsGV}; // presents list of details for a contact based on Graphics View

    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void createMenus();

public slots:
    void errorOccurred(QString errMsg);
    void displayVersion();
    void displayDetails();
    void displayList();

private:
    DetailsGV *details;
    QAction *detailsAction;
    QAction *verAction;
    QAction *exitAction;

    Ui::MainWindow *ui;
    ContactsEngine *ce;
};

#endif // MAINWINDOW_H