-rw-r--r-- | korganizer/mainwindow.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index e3383ed..0926313 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -2,48 +2,51 @@ | |||
2 | #define KORGE_MAINWINDOW_H | 2 | #define KORGE_MAINWINDOW_H |
3 | 3 | ||
4 | #include <qmainwindow.h> | 4 | #include <qmainwindow.h> |
5 | #include <qtimer.h> | 5 | #include <qtimer.h> |
6 | #include <qdict.h> | 6 | #include <qdict.h> |
7 | #include <qfile.h> | 7 | #include <qfile.h> |
8 | #include <qtextstream.h> | 8 | #include <qtextstream.h> |
9 | #include <qregexp.h> | 9 | #include <qregexp.h> |
10 | 10 | ||
11 | #include <libkcal/incidence.h> | 11 | #include <libkcal/incidence.h> |
12 | #include "simplealarmclient.h" | 12 | #include "simplealarmclient.h" |
13 | #include <ksyncmanager.h> | 13 | #include <ksyncmanager.h> |
14 | 14 | #ifndef DESKTOP_VERSION | |
15 | #include <qcopchannel_qws.h> | ||
16 | #endif | ||
15 | class QAction; | 17 | class QAction; |
16 | class CalendarView; | 18 | class CalendarView; |
17 | class KSyncProfile; | 19 | class KSyncProfile; |
18 | #ifdef DESKTOP_VERSION | 20 | #ifdef DESKTOP_VERSION |
19 | 21 | ||
20 | #define QPEToolBar QToolBar | 22 | #define QPEToolBar QToolBar |
21 | #define QPEMenuBar QMenuBar | 23 | #define QPEMenuBar QMenuBar |
22 | #endif | 24 | #endif |
23 | class QPEToolBar; | 25 | class QPEToolBar; |
24 | 26 | ||
25 | 27 | ||
26 | namespace KCal { | 28 | namespace KCal { |
27 | class CalendarLocal; | 29 | class CalendarLocal; |
28 | } | 30 | } |
29 | 31 | ||
30 | using namespace KCal; | 32 | using namespace KCal; |
31 | 33 | ||
32 | class MainWindow : public QMainWindow | 34 | class MainWindow : public QMainWindow |
33 | { | 35 | { |
34 | Q_OBJECT | 36 | Q_OBJECT |
35 | public: | 37 | public: |
36 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); | 38 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); |
37 | ~MainWindow(); | 39 | ~MainWindow(); |
40 | bool beamReceiveEnabled(); | ||
38 | public slots: | 41 | public slots: |
39 | virtual void showMaximized (); | 42 | virtual void showMaximized (); |
40 | void configureAgenda( int ); | 43 | void configureAgenda( int ); |
41 | void recieve( const QCString& msg, const QByteArray& data ); | 44 | void recieve( const QCString& msg, const QByteArray& data ); |
42 | static QString defaultFileName(); | 45 | static QString defaultFileName(); |
43 | static QString syncFileName(); | 46 | static QString syncFileName(); |
44 | static QString resourcePath(); | 47 | static QString resourcePath(); |
45 | protected slots: | 48 | protected slots: |
46 | void setCaptionToDates(); | 49 | void setCaptionToDates(); |
47 | void about(); | 50 | void about(); |
48 | void licence(); | 51 | void licence(); |
49 | void faq(); | 52 | void faq(); |
@@ -67,39 +70,46 @@ class MainWindow : public QMainWindow | |||
67 | void slotModifiedChanged( bool ); | 70 | void slotModifiedChanged( bool ); |
68 | 71 | ||
69 | void save(); | 72 | void save(); |
70 | void configureToolBar( int ); | 73 | void configureToolBar( int ); |
71 | void printSel(); | 74 | void printSel(); |
72 | void printCal(); | 75 | void printCal(); |
73 | void saveCalendar(); | 76 | void saveCalendar(); |
74 | void loadCalendar(); | 77 | void loadCalendar(); |
75 | void exportVCalendar(); | 78 | void exportVCalendar(); |
76 | void fillFilterMenu(); | 79 | void fillFilterMenu(); |
77 | void selectFilter( int ); | 80 | void selectFilter( int ); |
78 | void exportToPhone( int ); | 81 | void exportToPhone( int ); |
82 | void toggleBeamReceive(); | ||
83 | void disableBR(bool); | ||
79 | 84 | ||
80 | 85 | ||
81 | protected: | 86 | protected: |
82 | void displayText( QString, QString); | 87 | void displayText( QString, QString); |
83 | void displayFile( QString, QString); | 88 | void displayFile( QString, QString); |
84 | 89 | ||
85 | void enableIncidenceActions( bool ); | 90 | void enableIncidenceActions( bool ); |
86 | 91 | ||
87 | private slots: | 92 | private slots: |
88 | QSocket* piSocket; | 93 | QSocket* piSocket; |
89 | QString piFileString; | 94 | QString piFileString; |
90 | QTime piTime; | 95 | QTime piTime; |
91 | void getFile( bool ); | 96 | void getFile( bool ); |
92 | void syncFileRequest(); | 97 | void syncFileRequest(); |
93 | private: | 98 | private: |
99 | bool mBRdisabled; | ||
100 | #ifndef DESKTOP_VERSION | ||
101 | QCopChannel* infrared; | ||
102 | #endif | ||
103 | QAction* brAction; | ||
94 | KSyncManager* mSyncManager; | 104 | KSyncManager* mSyncManager; |
95 | bool mClosed; | 105 | bool mClosed; |
96 | void saveOnClose(); | 106 | void saveOnClose(); |
97 | bool mFlagKeyPressed; | 107 | bool mFlagKeyPressed; |
98 | bool mBlockAtStartup; | 108 | bool mBlockAtStartup; |
99 | QPEToolBar *iconToolBar; | 109 | QPEToolBar *iconToolBar; |
100 | void initActions(); | 110 | void initActions(); |
101 | void setDefaultPreferences(); | 111 | void setDefaultPreferences(); |
102 | void keyPressEvent ( QKeyEvent * ) ; | 112 | void keyPressEvent ( QKeyEvent * ) ; |
103 | void keyReleaseEvent ( QKeyEvent * ) ; | 113 | void keyReleaseEvent ( QKeyEvent * ) ; |
104 | QPopupMenu *configureToolBarMenu; | 114 | QPopupMenu *configureToolBarMenu; |
105 | QPopupMenu *selectFilterMenu; | 115 | QPopupMenu *selectFilterMenu; |