libopie PIM API Documentation

OPimResolver Class Reference

OPimResolver is a MetaClass to access available backends read only. More...

#include <opimresolver.h>

Collaboration diagram for OPimResolver:

Collaboration graph
[legend]
List of all members.

Public Types

enum  BuiltIn { TodoList = 0, DateBook, AddressBook }

Public Member Functions

OPimRecordrecord (const QString &service, int uid)
 return a record for a uid and an service You've THE OWNERSHIP NOW!

QCString qcopChannel (enum BuiltIn &) const
 return the QCopChannel for service When we will use Qtopia Services it will be used here

QCString qcopChannel (const QString &service) const
QCString applicationChannel (enum BuiltIn &) const
 The Application channel (QPE/Application/name).

QCString applicationChannel (const QString &service) const
QStringList services () const
 return a list of available services

QString serviceName (int rrti) const
int serviceId (const QString &Service)
bool add (const QString &service, const OPimRecord &)
 add a record to a service...

OPimRecordrecord (const QString &service)
 record returns an empty record for a given service.

OPimRecordrecord (int rtti)
OPimBasebackend (const QString &service)
 you can cast to your

OPimBasebackend (int rtti)

Static Public Member Functions

OPimResolverself ()

Detailed Description

OPimResolver is a MetaClass to access available backends read only.

It will be used to resolve uids + app names to full informations to traverse through a list of alarms, reminders to get access to built in PIM functionality and to more stuff THE PERFORMANCE will depend on THE BACKEND USING XML is a waste of memory!!!!!

Definition at line 20 of file opimresolver.h.


Member Enumeration Documentation

enum OPimResolver::BuiltIn
 

Enumeration values:
TodoList 
DateBook 
AddressBook 

Definition at line 22 of file opimresolver.h.


Member Function Documentation

OPimResolver * OPimResolver::self  )  [static]
 

Definition at line 17 of file opimresolver.cpp.

OPimRecord * OPimResolver::record const QString service,
int  uid
 

return a record for a uid and an service You've THE OWNERSHIP NOW!

Definition at line 27 of file opimresolver.cpp.

References backend(), and OPimBase::record().

Referenced by record().

QCString OPimResolver::qcopChannel enum BuiltIn  )  const
 

return the QCopChannel for service When we will use Qtopia Services it will be used here

Definition at line 61 of file opimresolver.cpp.

QCString OPimResolver::qcopChannel const QString service  )  const
 

Definition at line 79 of file opimresolver.cpp.

QCString OPimResolver::applicationChannel enum BuiltIn  )  const
 

The Application channel (QPE/Application/name).

Definition at line 88 of file opimresolver.cpp.

Referenced by add().

QCString OPimResolver::applicationChannel const QString service  )  const
 

Definition at line 104 of file opimresolver.cpp.

QStringList OPimResolver::services  )  const
 

return a list of available services

Definition at line 119 of file opimresolver.cpp.

QString OPimResolver::serviceName int  rrti  )  const [inline]
 

Definition at line 122 of file opimresolver.cpp.

References AddressBook, DateBook, and TodoList.

int OPimResolver::serviceId const QString Service  ) 
 

Definition at line 140 of file opimresolver.cpp.

References AddressBook, DateBook, and TodoList.

Referenced by backend(), and record().

bool OPimResolver::add const QString service,
const OPimRecord
 

add a record to a service...

;)

Definition at line 154 of file opimresolver.cpp.

References OPimBase::add(), applicationChannel(), backend(), QCopChannel::isRegistered(), OPimBase::load(), OPimRecord::rtti(), OPimBase::save(), and OPimRecord::saveToStream().

OPimRecord * OPimResolver::record const QString service  ) 
 

record returns an empty record for a given service.

Be sure to delete it!!!

Definition at line 37 of file opimresolver.cpp.

References record(), and serviceId().

OPimRecord * OPimResolver::record int  rtti  ) 
 

Definition at line 40 of file opimresolver.cpp.

OPimBase * OPimResolver::backend const QString service  ) 
 

you can cast to your

Definition at line 176 of file opimresolver.cpp.

References serviceId().

Referenced by add(), and record().

OPimBase * OPimResolver::backend int  rtti  ) 
 

Definition at line 179 of file opimresolver.cpp.

References AddressBook, DateBook, and TodoList.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for OPIE Version 1.1.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:26:26 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001