summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h
index b6a8419..be4b469 100644
--- a/noncore/apps/opie-console/mainwindow.h
+++ b/noncore/apps/opie-console/mainwindow.h
@@ -13,12 +13,13 @@
13 */ 13 */
14class QToolBar; 14class QToolBar;
15class QMenuBar; 15class QMenuBar;
16class QAction; 16class QAction;
17class MetaFactory; 17class MetaFactory;
18 18
19class ProfileManager;
19class MainWindow : public QMainWindow { 20class MainWindow : public QMainWindow {
20 Q_OBJECT 21 Q_OBJECT
21public: 22public:
22 MainWindow( ); 23 MainWindow( );
23 ~MainWindow(); 24 ~MainWindow();
24 25
@@ -36,21 +37,29 @@ public:
36 37
37 /** 38 /**
38 * the session list 39 * the session list
39 */ 40 */
40 QList<Session> sessions(); 41 QList<Session> sessions();
41 42
43 /**
44 *
45 */
46 ProfileManager* manager();
47
42private slots: 48private slots:
43 void slotNew(); 49 void slotNew();
44 void slotConnect(); 50 void slotConnect();
45 void slotDisconnect(); 51 void slotDisconnect();
46 void slotTerminate(); 52 void slotTerminate();
47 void slotConfigure(); 53 void slotConfigure();
54 void slotClose();
55 void slotProfile(int);
48 56
49private: 57private:
50 void initUI(); 58 void initUI();
59 void populateProfiles();
51 /** 60 /**
52 * the current session 61 * the current session
53 */ 62 */
54 Session* m_curSession; 63 Session* m_curSession;
55 64
56 /** 65 /**
@@ -59,12 +68,13 @@ private:
59 QList<Session> m_sessions; 68 QList<Session> m_sessions;
60 69
61 /** 70 /**
62 * the metafactory 71 * the metafactory
63 */ 72 */
64 MetaFactory* m_factory; 73 MetaFactory* m_factory;
74 ProfileManager* m_manager;
65 75
66 QToolBar* m_tool; 76 QToolBar* m_tool;
67 QMenuBar* m_bar; 77 QMenuBar* m_bar;
68 QPopupMenu* m_console; 78 QPopupMenu* m_console;
69 QPopupMenu* m_settings; 79 QPopupMenu* m_settings;
70 QPopupMenu* m_sessionsPop; 80 QPopupMenu* m_sessionsPop;