summaryrefslogtreecommitdiff
path: root/core/pim/osearch/mainwindow.h
Unidiff
Diffstat (limited to 'core/pim/osearch/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/mainwindow.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/core/pim/osearch/mainwindow.h b/core/pim/osearch/mainwindow.h
new file mode 100644
index 0000000..f7e8f8e
--- a/dev/null
+++ b/core/pim/osearch/mainwindow.h
@@ -0,0 +1,69 @@
1/***************************************************************************
2 * *
3 * This program is free software; you can redistribute it and/or modify *
4 * it under the terms of the GNU General Public License as published by *
5 * the Free Software Foundation; either version 2 of the License, or *
6 * (at your option) any later version. *
7 * *
8 ***************************************************************************/
9
10// (c) 2002 Patrick S. Vogt <tille@handhelds.org>
11
12#ifndef MAINWINDOW_H
13#define MAINWINDOW_H
14
15#include <qmainwindow.h>
16#include <qdialog.h>
17#include <qaction.h>
18#include <qtimer.h>
19#include <qpopupmenu.h>
20
21class QPEToolBar;
22class QVBoxLayout;
23class QTextView;
24class QFrame;
25class QListViewItem;
26class OListView;
27class OListViewItem;
28class AdressSearch;
29class TodoSearch;
30class DatebookSearch;
31
32class MainWindow : public QMainWindow
33{
34 Q_OBJECT
35
36
37public:
38 MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
39 ~MainWindow();
40
41
42public slots:
43 void setCurrent(QListViewItem*);
44 void showPopup();
45 void stopTimer( QListViewItem* );
46 void setSearch( const QString& );
47
48protected slots:
49 void showItem();
50 void editItem();
51
52private:
53 OListView *resultsList;
54 QTextView *richEdit;
55 OListViewItem *_currentItem;
56 QVBoxLayout *mainLayout;
57 QFrame *detailsFrame;
58 OListViewItem *_item;
59 QTimer *popupTimer;
60
61 AdressSearch *adrSearch;
62 TodoSearch *todoSearch;
63 DatebookSearch *datebookSearch;
64
65 void makeMenu();
66};
67
68#endif
69