class KAlcatelDoc

KAlcatelDoc provides a document object for a document-view model. More...

Definition#include <kalcatel/kalcateldoc.h>
InheritsQObject (unknown) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Public Members

Private Methods

Private Members


Detailed Description

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

void  addView (KAlcatelView *view)

addView

adds a view to the document which represents the document contents. Usually this is your main view.

void  removeView (KAlcatelView *view)

removeView

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 KURL&  URL ()

URL

[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

void  updateDocument (AlcDataType which)

updateDocument

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.

static QList<KAlcatelView> * pViewList

pViewList

AlcatelCategoryList * todo_cats

todo_cats

AlcatelCategoryList * contact_cats

contact_cats

AlcatelContactList * contacts

contacts

AlcatelCalendarList * calendar

calendar

AlcatelTodoList * todos

todos

AlcatelMessageList * messages

messages

AlcatelCallList * calls

calls

void  readDomMessage (QDomElement el)

readDomMessage

[private]

reads message from DOM document, el should be root element of message ()

void  readDomEvent (QDomElement el)

readDomEvent

[private]

void  readDomTodo (QDomElement el)

readDomTodo

[private]

void  readDomContact (QDomElement el)

readDomContact

[private]

void  readDomCategory (QDomElement el, AlcatelCategoryList *list)

readDomCategory

[private]

void  readDomCall (QDomElement el)

readDomCall

[private]

QString  readDomString (QDomElement el)

readDomString

[private]

int  readDomInt (QDomElement el)

readDomInt

[private]

QTime  readDomTime (QDomElement el)

readDomTime

[private]

QDate  readDomDate (QDomElement el)

readDomDate

[private]

QDateTime  readDomDateTime (QDomElement el)

readDomDateTime

[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

bool modified

modified

[private]

KURL doc_url

doc_url

[private]

int version

version

[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.