|
|
The base class for KAlcatel application windows. It sets up the main window and reads the config file as well as providing a menubar, toolbar and statusbar. An instance of KAlcatelView creates your center view, which is connected to the window's Doc object. KAlcatelApp reimplements the methods that KMainWindow provides for main window handling and supports full session management as well as using KActions.
See also: KMainWindow, KApplication, KConfig
friend class KAlcatelView | KAlcatelView |
[private]
KAlcatelApp (QWidget *parent=0, const char *name=0)
| KAlcatelApp |
construtor of KAlcatelApp, calls all init functions to create the application.
~KAlcatelApp ()
| ~KAlcatelApp |
void openDocumentFile (const KURL& url=0)
| openDocumentFile |
opens a file specified by commandline option
KAlcatelDoc * getDocument ()
| getDocument |
[const]
returns a pointer to the current document connected to the KTMainWindow instance and is used by the View class to access the document object's methods
QString phone_prefix | phone_prefix |
QString mobile_device | mobile_device |
QString mobile_lock | mobile_lock |
QString mobile_init | mobile_init |
bool mobile_rtscts | mobile_rtscts |
int mobile_rate | mobile_rate |
int mobile_debug | mobile_debug |
bool auto_open_last | auto_open_last |
KURL last_file | last_file |
int mergeData | mergeData |
int conflictAction | conflictAction |
int contact_url | contact_url |
bool reread_messages | reread_messages |
bool persistent_modem | persistent_modem |
bool auto_modem | auto_modem |
bool saveTodos | saveTodos |
bool loadTodos | loadTodos |
bool saveEvents | saveEvents |
bool loadEvents | loadEvents |
bool saveContacts | saveContacts |
bool loadContacts | loadContacts |
bool saveMessages | saveMessages |
bool loadMessages | loadMessages |
bool saveCalls | saveCalls |
bool loadCalls | loadCalls |
int monitorInterval | monitorInterval |
AlcatelContact * solveConflict (AlcatelContact &c1, AlcatelContact &c2)
| solveConflict |
AlcatelMessage * solveConflict (AlcatelMessage &c1, AlcatelMessage &c2)
| solveConflict |
AlcatelCalendar * solveConflict (AlcatelCalendar &c1, AlcatelCalendar &c2)
| solveConflict |
AlcatelTodo * solveConflict (AlcatelTodo &c1, AlcatelTodo &c2)
| solveConflict |
AlcatelCall * solveConflict (AlcatelCall &c1, AlcatelCall &c2)
| solveConflict |
AlcatelCategory * solveConflict (AlcatelCategory &c1, AlcatelCategory &c2)
| solveConflict |
void saveOptions ()
| saveOptions |
[protected]
save general Options like all bar positions and status as well as the geometry and the recent file list to the configuration file
void readOptions ()
| readOptions |
[protected]
read general Options again and initialize all variables like the recent file list
void initConfig ()
| initConfig |
[protected]
initializes anything sthat is configured
void initActions ()
| initActions |
[protected]
initializes the KActions of the application
void initStatusBar ()
| initStatusBar |
[protected]
sets up the statusbar for the main window by initialzing a statuslabel.
void initDocument ()
| initDocument |
[protected]
initializes the document object of the main window that is connected to the view in initView().
See also: initView();
void initView ()
| initView |
[protected]
creates the centerwidget of the KTMainWindow instance and sets it as the view
bool queryClose ()
| queryClose |
[protected virtual]
queryClose is called by KTMainWindow on each closeEvent of a window. Against the default implementation (only returns true), this calles saveModified() on the document object to ask if the document shall be saved if Modified; on cancel the closeEvent is rejected.
See also: KTMainWindow#queryClose, KTMainWindow#closeEvent
bool queryExit ()
| queryExit |
[protected virtual]
queryExit is called by KTMainWindow when the last window of the application is going to be closed during the closeEvent(). Against the default implementation that just returns true, this calls saveOptions() to save the settings of the last window's properties.
See also: KTMainWindow#queryExit, KTMainWindow#closeEvent
void saveProperties (KConfig *_cfg)
| saveProperties |
[protected virtual]
saves the window properties for each open window during session end to the session config file, including saving the currently opened file by a temporary filename provided by KApplication.
See also: KTMainWindow#saveProperties
void readProperties (KConfig *_cfg)
| readProperties |
[protected virtual]
reads the session config file and restores the application's state including the last opened files and documents by reading the temporary files saved by saveProperties()
See also: KTMainWindow#readProperties
void slotFetchAll ()
| slotFetchAll |
[slot]
reads all data from mobile
void slotFetchTodo ()
| slotFetchTodo |
[slot]
reads todo data from mobile
void slotFetchMessages ()
| slotFetchMessages |
[slot]
reads message data from mobile
void slotFetchCalendar ()
| slotFetchCalendar |
[slot]
reads calendar data from mobile
void slotFetchCalls ()
| slotFetchCalls |
[slot]
reads call data from mobile
void slotFetchContactsSim ()
| slotFetchContactsSim |
[slot]
reads contacts data from SIM
void slotFetchContactsMobile ()
| slotFetchContactsMobile |
[slot]
reads contacts data from mobile
void slotMobileInfo ()
| slotMobileInfo |
[slot]
shows mobile information
void slotFileNew ()
| slotFileNew |
[slot]
clears the document in the actual view to reuse it as the new document
void slotFileOpen ()
| slotFileOpen |
[slot]
open a file and load it into the document
void slotFileOpenRecent (const KURL& url)
| slotFileOpenRecent |
[slot]
opens a file from the recent files menu
void slotFileSave ()
| slotFileSave |
[slot]
save a document
void slotFileSaveAs ()
| slotFileSaveAs |
[slot]
save a document by a new filename
void slotFileClose ()
| slotFileClose |
[slot]
asks for saving if the file is modified, then closes the actual file and window
void slotFilePrint ()
| slotFilePrint |
[slot]
print the actual file
void slotFileQuit ()
| slotFileQuit |
[slot]
closes all open windows by calling close() on each memberList item until the list is empty, then quits the application. If queryClose() returns false because the user canceled the saveModified() dialog, the closing breaks.
void slotEditCut ()
| slotEditCut |
[slot]
put the marked text/object into the clipboard and remove it from the document
void slotEditCopy ()
| slotEditCopy |
[slot]
put the marked text/object into the clipboard
void slotEditPaste ()
| slotEditPaste |
[slot]
paste the clipboard into the document
void slotViewToolBar ()
| slotViewToolBar |
[slot]
toggles the toolbar
void slotViewStatusBar ()
| slotViewStatusBar |
[slot]
toggles the statusbar
void slotStatusMsg (const QString &text, int which, bool clearDetail = true)
| slotStatusMsg |
[slot]
changes the statusbar contents for the standard label permanently, used to indicate current actions.
Parameters:
text | the text that is displayed in the statusbar |
void slotDefaultDetailMsg ()
| slotDefaultDetailMsg |
[slot]
sets default details status message
void slotPreferencesEdit ()
| slotPreferencesEdit |
[slot]
opens application configuration dialog
void slotPreferencesSave ()
| slotPreferencesSave |
[slot]
saves preferences
void slotConfigureKeys ()
| slotConfigureKeys |
[slot]
opens key configuration dialog
void slotPreferencesToolbars ()
| slotPreferencesToolbars |
[slot]
opens toolbar configuration dialog
void slotNewMessage ()
| slotNewMessage |
[slot]
opens message editing dialog
void slotNewTodo ()
| slotNewTodo |
[slot]
opens todo editing dialog
void slotNewContact ()
| slotNewContact |
[slot]
opens contact editing dialog
void slotNewEvent ()
| slotNewEvent |
[slot]
opens event editing dialog
void slotNewTodoCategory ()
| slotNewTodoCategory |
[slot]
creates new todo category
void slotNewContactCategory ()
| slotNewContactCategory |
[slot]
creates new contact category
bool modemConnect ()
| modemConnect |
[slot]
connects to modem
void modemDisconnect ()
| modemDisconnect |
[slot]
disconnects from modem
void slotModemDisconnect ()
| slotModemDisconnect |
[slot]
manually disconnects from modem = doesn't check whether we want persistent connection
void statusUpdate ()
| statusUpdate |
[slot]
updates battery and signal status
void connectionToggle ()
| connectionToggle |
[slot]
toggle connection status (connected/disconnected)
void slotMobileCommit ()
| slotMobileCommit |
[slot]
commits changes into mobile
KConfig * config | config |
[private]
KAlcatelView * view | view |
[private]
KAlcatelDoc * doc | doc |
[private]
QString statusText | statusText |
[private]
QString detailText | detailText |
[private]
KAction * fetchAll | fetchAll |
[private]
KAction * fetchTodo | fetchTodo |
[private]
KAction * fetchMessages | fetchMessages |
[private]
KAction * fetchCalendar | fetchCalendar |
[private]
KAction * fetchCalls | fetchCalls |
[private]
KAction * fetchContactsSim | fetchContactsSim |
[private]
KAction * fetchContactsMobile | fetchContactsMobile |
[private]
KAction * newMessage | newMessage |
[private]
KAction * newEvent | newEvent |
[private]
KAction * newContact | newContact |
[private]
KAction * newTodo | newTodo |
[private]
KAction * newContactCategory | newContactCategory |
[private]
KAction * newTodoCategory | newTodoCategory |
[private]
KAction * mobileInfo | mobileInfo |
[private]
KAction * mobileCommit | mobileCommit |
[private]
KAction * mobileManualDisconnect | mobileManualDisconnect |
[private]
KAction * mobileManualConnect | mobileManualConnect |
[private]
KAction * fileNew | fileNew |
[private]
KAction * fileOpen | fileOpen |
[private]
KRecentFilesAction * fileOpenRecent | fileOpenRecent |
[private]
KAction * fileSave | fileSave |
[private]
KAction * fileSaveAs | fileSaveAs |
[private]
KAction * fileClose | fileClose |
[private]
KAction * filePrint | filePrint |
[private]
KAction * fileQuit | fileQuit |
[private]
KAction * editCut | editCut |
[private]
KAction * editCopy | editCopy |
[private]
KAction * editPaste | editPaste |
[private]
KToggleAction * viewToolBar | viewToolBar |
[private]
KToggleAction * viewStatusBar | viewStatusBar |
[private]
KAction * preferencesSave | preferencesSave |
[private]
KAction * preferencesEdit | preferencesEdit |
[private]
KAction * preferencesKeyBindings | preferencesKeyBindings |
[private]
KAction * preferencesToolbars | preferencesToolbars |
[private]
bool modemConnected | modemConnected |
[private]
bool modemLocked | modemLocked |
[private]
SignalLabel * signalLabel | signalLabel |
[private]
SignalLabel * batteryLabel | batteryLabel |
[private]
SignalLed * statusLed | statusLed |
[private]
void timerEvent ( QTimerEvent * )
| timerEvent |
[protected]
detailed status text