5 Copyright (C) 2011 by Cuong Le <metacuong@gmail.com>
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>
21 #include <QtGui/QMainWindow>
25 #include <QListWidget>
28 class QTableWidgetItem;
31 class MainWindow : public QMainWindow
35 enum ScreenOrientation {
36 ScreenOrientationLockPortrait,
37 ScreenOrientationLockLandscape,
41 explicit MainWindow(QWidget *parent = 0);
42 virtual ~MainWindow();
44 // Note that this will only have an effect on Symbian and Fremantle.
45 void setOrientation(ScreenOrientation orientation);
53 void elv1db_finised();
55 void start_indicator();
56 void stop_indicator();
58 void elv1db_detail_finised();
60 void cellClicked(int, int);
62 void detail_start_indicator();
64 void select_gsm_calls();
65 void select_all_call();
67 void select_all_typecall();
68 void select_incoming_calls();
69 void select_outgoing_calls();
70 void select_missed_calls();
76 QTableWidget *m_contacts_widget;
77 QListWidget *m_contact_detail;
79 QMainWindow *dlg_options;
82 void setup_menu_detail();
84 void doSearch(QString val);
87 uint m_type_query_temp;
91 QMainWindow *detail_dlg;
93 void me_indicator(QMainWindow*, bool);
96 #endif // MAINWINDOW_H