summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.h
Unidiff
Diffstat (limited to 'korganizer/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h
index ee4aaa6..a681f42 100644
--- a/korganizer/mainwindow.h
+++ b/korganizer/mainwindow.h
@@ -8,96 +8,97 @@
8#include <libkcal/incidence.h> 8#include <libkcal/incidence.h>
9#include "simplealarmclient.h" 9#include "simplealarmclient.h"
10 10
11class QAction; 11class QAction;
12class CalendarView; 12class CalendarView;
13class KSyncProfile; 13class KSyncProfile;
14#ifdef DESKTOP_VERSION 14#ifdef DESKTOP_VERSION
15 15
16#define QPEToolBar QToolBar 16#define QPEToolBar QToolBar
17#define QPEMenuBar QMenuBar 17#define QPEMenuBar QMenuBar
18#endif 18#endif
19class QPEToolBar; 19class QPEToolBar;
20 20
21namespace KCal { 21namespace KCal {
22class CalendarLocal; 22class CalendarLocal;
23} 23}
24 24
25using namespace KCal; 25using namespace KCal;
26 26
27class MainWindow : public QMainWindow 27class MainWindow : public QMainWindow
28{ 28{
29 Q_OBJECT 29 Q_OBJECT
30 public: 30 public:
31 MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); 31 MainWindow( QWidget *parent = 0, const char *name = 0, QString command = "");
32 ~MainWindow(); 32 ~MainWindow();
33 public slots: 33 public slots:
34 void configureAgenda( int ); 34 void configureAgenda( int );
35 void recieve( const QCString& msg, const QByteArray& data ); 35 void recieve( const QCString& msg, const QByteArray& data );
36 static QString defaultFileName(); 36 static QString defaultFileName();
37 static QString resourcePath(); 37 static QString resourcePath();
38 protected slots: 38 protected slots:
39 void setCaptionToDates(); 39 void setCaptionToDates();
40 int ringSync(); 40 int ringSync();
41 void multiSync( bool askforPrefs = false ); 41 void multiSync( bool askforPrefs = false );
42 void about(); 42 void about();
43 void faq(); 43 void faq();
44 void usertrans(); 44 void usertrans();
45 void features(); 45 void features();
46 void synchowto(); 46 void synchowto();
47 void whatsNew(); 47 void whatsNew();
48 void keyBindings(); 48 void keyBindings();
49 void aboutAutoSaving();; 49 void aboutAutoSaving();;
50 void aboutKnownBugs(); 50 void aboutKnownBugs();
51 51
52 void processIncidenceSelection( Incidence * ); 52 void processIncidenceSelection( Incidence * );
53 53
54 void importQtopia(); 54 void importQtopia();
55 void importBday(); 55 void importBday();
56 void importOL();
56 void importIcal(); 57 void importIcal();
57 void importFile( QString, bool ); 58 void importFile( QString, bool );
58 void quickImportIcal(); 59 void quickImportIcal();
59 60
60 void slotModifiedChanged( bool ); 61 void slotModifiedChanged( bool );
61 62
62 void save(); 63 void save();
63 void configureToolBar( int ); 64 void configureToolBar( int );
64 void printSel(); 65 void printSel();
65 void printCal(); 66 void printCal();
66 void saveCalendar(); 67 void saveCalendar();
67 void loadCalendar(); 68 void loadCalendar();
68 void exportVCalendar(); 69 void exportVCalendar();
69 70
70 void slotSyncMenu( int ); 71 void slotSyncMenu( int );
71 void syncSSH(); 72 void syncSSH();
72 void confSync(); 73 void confSync();
73 void syncSharp(); 74 void syncSharp();
74 void syncLocalFile(); 75 void syncLocalFile();
75 bool syncWithFile( QString, bool ); 76 bool syncWithFile( QString, bool );
76 void quickSyncLocalFile(); 77 void quickSyncLocalFile();
77 78
78 79
79 protected: 80 protected:
80 void displayText( QString, QString); 81 void displayText( QString, QString);
81 void displayFile( QString, QString); 82 void displayFile( QString, QString);
82 83
83 void enableIncidenceActions( bool ); 84 void enableIncidenceActions( bool );
84 85
85 private: 86 private:
86 void saveOnClose(); 87 void saveOnClose();
87 int mCurrentSyncProfile; 88 int mCurrentSyncProfile;
88 void syncRemote( KSyncProfile* , bool ask = true); 89 void syncRemote( KSyncProfile* , bool ask = true);
89 void fillSyncMenu(); 90 void fillSyncMenu();
90 bool mFlagKeyPressed; 91 bool mFlagKeyPressed;
91 bool mBlockAtStartup; 92 bool mBlockAtStartup;
92 QPEToolBar *iconToolBar; 93 QPEToolBar *iconToolBar;
93 void initActions(); 94 void initActions();
94 void setDefaultPreferences(); 95 void setDefaultPreferences();
95 void keyPressEvent ( QKeyEvent * ) ; 96 void keyPressEvent ( QKeyEvent * ) ;
96 void keyReleaseEvent ( QKeyEvent * ) ; 97 void keyReleaseEvent ( QKeyEvent * ) ;
97 QPopupMenu *configureToolBarMenu; 98 QPopupMenu *configureToolBarMenu;
98 QPopupMenu *configureAgendaMenu, *syncMenu; 99 QPopupMenu *configureAgendaMenu, *syncMenu;
99 CalendarLocal *mCalendar; 100 CalendarLocal *mCalendar;
100 CalendarView *mView; 101 CalendarView *mView;
101 QString getPassword(); 102 QString getPassword();
102 QAction *mNewSubTodoAction; 103 QAction *mNewSubTodoAction;
103 104