class KAlcatelDoc
|
KAlcatelDoc provides a document object for a document-view model. More... |
|
|
Public Methods
Public Slots
Public Members
Private Methods
Private Members
KAlcatelDoc provides a document object for a document-view model.
The KAlcatelDoc class provides a document object that can be used in conjunction with the classes KAlcatelApp and KAlcatelView
to create a document-view model for standard KDE applications based on KApplication and KMainWindow. Thereby, the document object
is created by the KAlcatelApp instance and contains the document structure with the according methods for manipulation of the document
data by KAlcatelView objects. Also, KAlcatelDoc contains the methods for serialization of the document data from and to files.
KAlcatelDoc (QWidget *parent, const char *name=0)
| KAlcatelDoc |
Constructor for the fileclass of the application
~KAlcatelDoc ()
| ~KAlcatelDoc |
Destructor for the fileclass of the application
adds a view to the document which represents the document contents. Usually this is your main view.
removes a view from the list of currently connected views
void setModified (bool _m=true)
| setModified |
sets the modified flag for the document after a modifying action on the view connected to the document.
bool isModified ()
| isModified |
returns if the document is modified or not. Use this to determine if your document needs saving by the user on closing.
bool saveModified ()
| saveModified |
"save modified" - asks the user for saving if the document is modified
void deleteContents ()
| deleteContents |
deletes the document's contents
bool newDocument ()
| newDocument |
initializes the document generally
void closeDocument ()
| closeDocument |
closes the acutal document
bool readMobile (AlcDataType what = alcatel_all)
| readMobile |
reads content from mobile
bool openDocument (const KURL& url, const char *format=0)
| openDocument |
loads the document by filename and format and emits the updateViews() signal
bool saveDocument (const KURL& url, const char *format=0)
| saveDocument |
saves the document under filename and format.
[const]
returns the KURL of the document
void setURL (const KURL& url)
| setURL |
sets the URL of the document
int getVersion ()
| getVersion |
returns document version
int getMessagesVersion ()
| getMessagesVersion |
returns messages version
int getCallsVersion ()
| getCallsVersion |
returns calls version
int getCalendarVersion ()
| getCalendarVersion |
returns calendar version
int getTodosVersion ()
| getTodosVersion |
returns todos version
int getContactsVersion ()
| getContactsVersion |
returns contacts version
int getPCStorageId ()
| getPCStorageId |
returns next pc storage id and increases internal counter
updates some part (or whole) document
bool commitChanges ()
| commitChanges |
commits changes to mobile
void addTodoCategory (QString &name)
| addTodoCategory |
void addContactCategory (QString &name)
| addContactCategory |
void slotUpdateAllViews (KAlcatelView *sender)
| slotUpdateAllViews |
[slot]
calls repaint() on all views connected to the document object and is called by the view by which the document has been changed.
As this view normally repaints itself, it is excluded from the paintEvent.
[private]
reads message from DOM document, el should be root element of message ()
[private]
[private]
[private]
[private]
[private]
[private]
[private]
[private]
[private]
[private]
bool readMobileCategories (AlcatelCategoryList *strList, alc_type sync, alc_type type, alc_type cat)
| readMobileCategories |
[private]
reads categories from mobile
bool createMobileCategory (QString &name, AlcatelCategoryList *strList, alc_type sync, alc_type type, alc_type cat)
| createMobileCategory |
[private]
bool readMobileItems (alc_type sync, alc_type type)
| readMobileItems |
[private]
reads items from mobile
[private]
[private]
[private]
int messagesVersion
| messagesVersion |
[private]
int callsVersion
| callsVersion |
[private]
int contactsVersion
| contactsVersion |
[private]
int calendarVersion
| calendarVersion |
[private]
int todosVersion
| todosVersion |
[private]
int pcStorageCounter
| pcStorageCounter |
[private]
Generated by: michal on quirk.cic on Fri May 9 19:34:14 2003, using kdoc 2.0a54. |