summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/mainwindow.h
blob: 5ea0c890069ef19201a924408c09f618e436b577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef DATE_BOOK_MAIN_WINDOW_H
#define DATE_BOOK_MAIN_WINDOW_H

#include <qlist.h>

#include <opie/opimmainwindow.h>

namespace Datebook {

    class MainWindow : public OPimMainWindow {
        Q_OBJECT
    public:
        MainWindow();
        ~MainWindow();

    private slots:
        void initUI(); // init the UI
        void initConfig(); // apply the config
        void initView(); // init the Views..
        void initManagers(); // init the Managers including templates, location and description
        void raiseCurrentView(); // raise the current View

    protected slots:
        void populate();
        void doSetDocument( const QString& str );
        void flush();
        void reload();
        int create();
        bool remove( int uid );
        void beam( int uid );
        void show( int uid );
        void edit( int uid );
        void add( const OPimRecord& );

    private:
        QList<View> m_view; // the Views.. not autoDelete

    };
}

#endif