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

Opie::OPimResolver Class Reference

#include </home/clem/local/src/opie/libopie2/opiepim/core/opimresolver.h>

Collaboration diagram for Opie::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

Definition at line 49 of file opimresolver.h.


Member Enumeration Documentation

enum Opie::OPimResolver::BuiltIn
 

Enumeration values:
TodoList 
DateBook 
AddressBook 

Definition at line 52 of file opimresolver.h.


Constructor & Destructor Documentation

Opie::OPimResolver::OPimResolver  )  [private]
 

Definition at line 44 of file opimresolver.cpp.

References OPimResolver::m_builtIns.


Member Function Documentation

bool Opie::OPimResolver::add const QString service,
const OPimRecord
 

add a record to a service... ;)

Definition at line 185 of file opimresolver.cpp.

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

QCString Opie::OPimResolver::applicationChannel const QString service  )  const
 

Definition at line 135 of file opimresolver.cpp.

References OPimResolver::isBuiltIn(), and str.

QCString Opie::OPimResolver::applicationChannel enum BuiltIn  )  const
 

The Application channel (QPE/Application/name)

Definition at line 119 of file opimresolver.cpp.

References OPimResolver::AddressBook, str, and OPimResolver::TodoList.

OPimBase * Opie::OPimResolver::backend int  rtti  ) 
 

Definition at line 210 of file opimresolver.cpp.

References OPimResolver::AddressBook, l, and OPimResolver::TodoList.

OPimBase * Opie::OPimResolver::backend const QString service  ) 
 

you can cast to your

Definition at line 207 of file opimresolver.cpp.

References OPimResolver::backend(), and OPimResolver::serviceId().

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

Definition at line 89 of file opimresolver.cpp.

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

void Opie::OPimResolver::loadData  )  [private]
 

QCString Opie::OPimResolver::qcopChannel const QString service  )  const
 

Definition at line 110 of file opimresolver.cpp.

References QString::latin1(), and str.

QCString Opie::OPimResolver::qcopChannel enum BuiltIn  )  const
 

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

Definition at line 92 of file opimresolver.cpp.

References OPimResolver::AddressBook, str, and OPimResolver::TodoList.

OPimRecord * Opie::OPimResolver::record int  rtti  ) 
 

Definition at line 71 of file opimresolver.cpp.

References l, and rec.

OPimRecord * Opie::OPimResolver::record const QString service  ) 
 

record returns an empty record for a given service. Be sure to delete it!!!

Definition at line 68 of file opimresolver.cpp.

References OPimResolver::record(), and OPimResolver::serviceId().

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

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

Definition at line 58 of file opimresolver.cpp.

References OPimResolver::backend(), l, rec, and Opie::OPimBase::record().

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

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

OPimResolver * Opie::OPimResolver::self  )  [static]
 

Definition at line 48 of file opimresolver.cpp.

References OPimResolver::m_self, and OPimResolver::OPimResolver().

int Opie::OPimResolver::serviceId const QString Service  ) 
 

Definition at line 171 of file opimresolver.cpp.

References OPimResolver::AddressBook, and OPimResolver::TodoList.

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

Definition at line 153 of file opimresolver.cpp.

References OPimResolver::AddressBook, str, and OPimResolver::TodoList.

QStringList Opie::OPimResolver::services  )  const
 

return a list of available services

Definition at line 150 of file opimresolver.cpp.

References OPimResolver::m_builtIns.


Member Data Documentation

Private* Opie::OPimResolver::d [private]
 

Definition at line 117 of file opimresolver.h.

Data* Opie::OPimResolver::data [private]
 

Definition at line 114 of file opimresolver.h.

QStringList Opie::OPimResolver::m_builtIns [private]
 

Definition at line 118 of file opimresolver.h.

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

Definition at line 42 of file opimresolver.cpp.


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