Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OPimResolver Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/libopie/pim/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)
QCString qcopChannel (enum BuiltIn &) const
QCString qcopChannel (const QString &service) const
QCString applicationChannel (enum BuiltIn &) const
QCString applicationChannel (const QString &service) const
QStringList services () const
QString serviceName (int rrti) const
int serviceId (const QString &Service)
bool add (const QString &service, const OPimRecord &)
OPimRecordrecord (const QString &service)
OPimRecordrecord (int rtti)
OPimBasebackend (const QString &service)
OPimBasebackend (int rtti)

Static Public Member Functions

static OPimResolverself ()

Private Member Functions

 OPimResolver ()
void loadData ()
bool isBuiltIn (const QString &) const
OPimRecordrecordExtern (const QString &, int)
OPimRecordrecordExtern (const QString &)

Private Attributes

Datadata
Private * d
QStringList m_builtIns

Static Private Attributes

static OPimResolverm_self = 0l

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.


Constructor & Destructor Documentation

OPimResolver::OPimResolver  )  [private]
 

Definition at line 13 of file opimresolver.cpp.

References m_builtIns.

Referenced by self(), and Opie::OPimResolver::self().


Member Function Documentation

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(), data, IO_WriteOnly, QCopChannel::isRegistered(), OPimBase::load(), OPimRecord::rtti(), OPimBase::save(), and OPimRecord::saveToStream().

QCString OPimResolver::applicationChannel const QString service  )  const
 

Definition at line 104 of file opimresolver.cpp.

References isBuiltIn(), and str.

QCString OPimResolver::applicationChannel enum BuiltIn  )  const
 

The Application channel (QPE/Application/name)

Definition at line 88 of file opimresolver.cpp.

References AddressBook, str, and TodoList.

Referenced by add(), and Opie::OPimResolver::add().

OPimBase * OPimResolver::backend int  rtti  ) 
 

Definition at line 179 of file opimresolver.cpp.

References AddressBook, l, and TodoList.

OPimBase * OPimResolver::backend const QString service  ) 
 

you can cast to your

Definition at line 176 of file opimresolver.cpp.

References serviceId().

Referenced by add(), Opie::OPimResolver::add(), Opie::OPimResolver::backend(), record(), and Opie::OPimResolver::record().

bool OPimResolver::isBuiltIn const QString  )  const [inline, private]
 

Definition at line 58 of file opimresolver.cpp.

References QValueList< T >::contains(), and m_builtIns.

Referenced by applicationChannel(), and Opie::OPimResolver::applicationChannel().

void OPimResolver::loadData  )  [private]
 

QCString OPimResolver::qcopChannel const QString service  )  const
 

Definition at line 79 of file opimresolver.cpp.

References QString::latin1(), and str.

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.

References AddressBook, str, and TodoList.

OPimRecord * OPimResolver::record int  rtti  ) 
 

Definition at line 40 of file opimresolver.cpp.

References l, and rec.

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 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(), l, rec, and OPimBase::record().

Referenced by record(), and Opie::OPimResolver::record().

OPimRecord* OPimResolver::recordExtern const QString  )  [private]
 

OPimRecord* OPimResolver::recordExtern const QString ,
int 
[private]
 

OPimResolver * OPimResolver::self  )  [static]
 

Definition at line 17 of file opimresolver.cpp.

References m_self, and OPimResolver().

Referenced by OPimMainWindow::record(), Opie::OPimMainWindow::record(), OPimMainWindow::service(), and Opie::OPimMainWindow::service().

int OPimResolver::serviceId const QString Service  ) 
 

Definition at line 140 of file opimresolver.cpp.

References AddressBook, and TodoList.

Referenced by backend(), Opie::OPimResolver::backend(), record(), and Opie::OPimResolver::record().

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

Definition at line 122 of file opimresolver.cpp.

References AddressBook, str, and TodoList.

QStringList OPimResolver::services  )  const
 

return a list of available services

Definition at line 119 of file opimresolver.cpp.

References m_builtIns.


Member Data Documentation

Private* OPimResolver::d [private]
 

Definition at line 86 of file opimresolver.h.

Data* OPimResolver::data [private]
 

Definition at line 83 of file opimresolver.h.

Referenced by add(), and Opie::OPimResolver::add().

QStringList OPimResolver::m_builtIns [private]
 

Definition at line 87 of file opimresolver.h.

Referenced by isBuiltIn(), Opie::OPimResolver::isBuiltIn(), OPimResolver(), Opie::OPimResolver::OPimResolver(), services(), and Opie::OPimResolver::services().

OPimResolver * OPimResolver::m_self = 0l [static, private]
 

Definition at line 11 of file opimresolver.cpp.

Referenced by self(), and Opie::OPimResolver::self().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:43:18 2005 for OPIE by  doxygen 1.4.2