summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiepim/backend/obackendfactory.h10
-rw-r--r--libopie2/opiepim/backend/ocontactaccessbackend.h12
-rw-r--r--libopie2/opiepim/backend/ocontactaccessbackend_sql.cpp136
-rw-r--r--libopie2/opiepim/backend/ocontactaccessbackend_sql.h22
-rw-r--r--libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp52
-rw-r--r--libopie2/opiepim/backend/ocontactaccessbackend_vcard.h22
-rw-r--r--libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp158
-rw-r--r--libopie2/opiepim/backend/ocontactaccessbackend_xml.h26
-rw-r--r--libopie2/opiepim/backend/odatebookaccessbackend.cpp18
-rw-r--r--libopie2/opiepim/backend/odatebookaccessbackend.h8
-rw-r--r--libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp64
-rw-r--r--libopie2/opiepim/backend/odatebookaccessbackend_sql.h12
-rw-r--r--libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp86
-rw-r--r--libopie2/opiepim/backend/odatebookaccessbackend_xml.h20
-rw-r--r--libopie2/opiepim/backend/opimaccessbackend.h2
-rw-r--r--libopie2/opiepim/backend/otodoaccessbackend.cpp6
-rw-r--r--libopie2/opiepim/backend/otodoaccessbackend.h8
-rw-r--r--libopie2/opiepim/backend/otodoaccesssql.cpp166
-rw-r--r--libopie2/opiepim/backend/otodoaccesssql.h22
-rw-r--r--libopie2/opiepim/backend/otodoaccessvcal.cpp70
-rw-r--r--libopie2/opiepim/backend/otodoaccessvcal.h16
-rw-r--r--libopie2/opiepim/backend/otodoaccessxml.cpp228
-rw-r--r--libopie2/opiepim/backend/otodoaccessxml.h24
-rw-r--r--libopie2/opiepim/core/core.pro16
-rw-r--r--libopie2/opiepim/core/ocontactaccess.cpp36
-rw-r--r--libopie2/opiepim/core/ocontactaccess.h20
-rw-r--r--libopie2/opiepim/core/odatebookaccess.cpp2
-rw-r--r--libopie2/opiepim/core/odatebookaccess.h4
-rw-r--r--libopie2/opiepim/core/opimaccesstemplate.h6
-rw-r--r--libopie2/opiepim/core/opimcontact.cpp (renamed from libopie2/opiepim/ocontact.cpp)264
-rw-r--r--libopie2/opiepim/core/opimcontact.h (renamed from libopie2/opiepim/ocontact.h)16
-rw-r--r--libopie2/opiepim/core/opimcontactfields.cpp (renamed from libopie2/opiepim/ocontactfields.cpp)48
-rw-r--r--libopie2/opiepim/core/opimcontactfields.h (renamed from libopie2/opiepim/ocontactfields.h)12
-rw-r--r--libopie2/opiepim/core/opimdateconversion.cpp (renamed from libopie2/opiepim/core/oconversion.cpp)10
-rw-r--r--libopie2/opiepim/core/opimdateconversion.h (renamed from libopie2/opiepim/core/oconversion.h)2
-rw-r--r--libopie2/opiepim/core/opimevent.cpp (renamed from libopie2/opiepim/oevent.cpp)250
-rw-r--r--libopie2/opiepim/core/opimevent.h (renamed from libopie2/opiepim/oevent.h)46
-rw-r--r--libopie2/opiepim/core/opimnotify.h2
-rw-r--r--libopie2/opiepim/core/opimnotifymanager.cpp8
-rw-r--r--libopie2/opiepim/core/opimrecordlist.h (renamed from libopie2/opiepim/orecordlist.h)90
-rw-r--r--libopie2/opiepim/core/opimrecurrence.cpp (renamed from libopie2/opiepim/core/orecur.cpp)160
-rw-r--r--libopie2/opiepim/core/opimrecurrence.h (renamed from libopie2/opiepim/core/orecur.h)20
-rw-r--r--libopie2/opiepim/core/opimresolver.cpp8
-rw-r--r--libopie2/opiepim/core/opimresolver.h2
-rw-r--r--libopie2/opiepim/core/opimtemplatebase.h (renamed from libopie2/opiepim/core/otemplatebase.h)0
-rw-r--r--libopie2/opiepim/core/opimtimezone.cpp (renamed from libopie2/opiepim/core/otimezone.cpp)36
-rw-r--r--libopie2/opiepim/core/opimtimezone.h (renamed from libopie2/opiepim/core/otimezone.h)12
-rw-r--r--libopie2/opiepim/core/opimtodo.cpp (renamed from libopie2/opiepim/otodo.cpp)140
-rw-r--r--libopie2/opiepim/core/opimtodo.h (renamed from libopie2/opiepim/otodo.h)50
-rw-r--r--libopie2/opiepim/core/otodoaccess.cpp32
-rw-r--r--libopie2/opiepim/core/otodoaccess.h34
-rw-r--r--libopie2/opiepim/libopiepim2.control4
-rw-r--r--libopie2/opiepim/opiepim.pro15
53 files changed, 1266 insertions, 1267 deletions
diff --git a/libopie2/opiepim/backend/obackendfactory.h b/libopie2/opiepim/backend/obackendfactory.h
index 346e2f5..06421d1 100644
--- a/libopie2/opiepim/backend/obackendfactory.h
+++ b/libopie2/opiepim/backend/obackendfactory.h
@@ -62,3 +62,3 @@ class OBackendPrivate;
* <pre>
- * OTodoAccessBackend* backend = OBackEndFactory<OTodoAccessBackend>::Default("todo", QString::null );
+ * OPimTodoAccessBackend* backend = OBackEndFactory<OPimTodoAccessBackend>::Default("todo", QString::null );
* backend->load();
@@ -110,3 +110,3 @@ class OBackendFactory
if ( backend == "sql" )
- return (T*) new OTodoAccessBackendSQL("");
+ return (T*) new OPimTodoAccessBackendSQL("");
#else
@@ -116,3 +116,3 @@ class OBackendFactory
- return (T*) new OTodoAccessXML( appName );
+ return (T*) new OPimTodoAccessXML( appName );
case CONTACT:
@@ -120,3 +120,3 @@ class OBackendFactory
if ( backend == "sql" )
- return (T*) new OContactAccessBackend_SQL("");
+ return (T*) new OPimContactAccessBackend_SQL("");
#else
@@ -126,3 +126,3 @@ class OBackendFactory
- return (T*) new OContactAccessBackend_XML( appName );
+ return (T*) new OPimContactAccessBackend_XML( appName );
case DATE:
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend.h b/libopie2/opiepim/backend/ocontactaccessbackend.h
index 6113cea..8436adc 100644
--- a/libopie2/opiepim/backend/ocontactaccessbackend.h
+++ b/libopie2/opiepim/backend/ocontactaccessbackend.h
@@ -41,3 +41,3 @@
-#include <opie2/ocontact.h>
+#include <opie2/opimcontact.h>
#include <opie2/opimaccessbackend.h>
@@ -54,6 +54,6 @@ namespace Opie {
*
- * @see OContactAccessBackend_VCard
- * @see OContactAccessBackend_XML
+ * @see OPimContactAccessBackend_VCard
+ * @see OPimContactAccessBackend_XML
*/
-class OContactAccessBackend: public OPimAccessBackend<OContact> {
+class OPimContactAccessBackend: public OPimAccessBackend<OPimContact> {
public:
@@ -62,3 +62,3 @@ class OContactAccessBackend: public OPimAccessBackend<OContact> {
*/
- OContactAccessBackend() {}
+ OPimContactAccessBackend() {}
/**
@@ -66,3 +66,3 @@ class OContactAccessBackend: public OPimAccessBackend<OContact> {
*/
- virtual ~OContactAccessBackend() {}
+ virtual ~OPimContactAccessBackend() {}
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_sql.cpp b/libopie2/opiepim/backend/ocontactaccessbackend_sql.cpp
index d0c8052..f121cc2 100644
--- a/libopie2/opiepim/backend/ocontactaccessbackend_sql.cpp
+++ b/libopie2/opiepim/backend/ocontactaccessbackend_sql.cpp
@@ -41,4 +41,4 @@
-#include <opie2/ocontactfields.h>
-#include <opie2/oconversion.h>
+#include <opie2/opimcontactfields.h>
+#include <opie2/opimdateconversion.h>
#include <opie2/osqldriver.h>
@@ -107,3 +107,3 @@ namespace Opie {
/**
- * inserts/adds a OContact to the table
+ * inserts/adds a OPimContact to the table
*/
@@ -111,3 +111,3 @@ namespace Opie {
public:
- InsertQuery(const OContact& );
+ InsertQuery(const OPimContact& );
~InsertQuery();
@@ -115,3 +115,3 @@ namespace Opie {
private:
- OContact m_contact;
+ OPimContact m_contact;
};
@@ -178,3 +178,3 @@ namespace Opie {
- QStringList fieldList = OContactFields::untrfields( false );
+ QStringList fieldList = OPimContactFields::untrfields( false );
for ( QStringList::Iterator it = ++fieldList.begin(); it != fieldList.end(); ++it ){
@@ -225,3 +225,3 @@ namespace Opie {
- InsertQuery::InsertQuery( const OContact& contact )
+ InsertQuery::InsertQuery( const OPimContact& contact )
: OSQLQuery(), m_contact( contact ) {
@@ -233,3 +233,3 @@ namespace Opie {
/*
- * converts from a OContact to a query
+ * converts from a OPimContact to a query
*/
@@ -246,4 +246,4 @@ namespace Opie {
- QStringList fieldList = OContactFields::untrfields( false );
- QMap<QString, int> translate = OContactFields::untrFieldsToId();
+ QStringList fieldList = OPimContactFields::untrfields( false );
+ QMap<QString, int> translate = OPimContactFields::untrFieldsToId();
for ( QStringList::Iterator it = ++fieldList.begin(); it != fieldList.end(); ++it ){
@@ -297,3 +297,3 @@ namespace Opie {
// Get the translation from the ID to the String
- QMap<int, QString> transMap = OContactFields::idToUntrFields();
+ QMap<int, QString> transMap = OPimContactFields::idToUntrFields();
@@ -461,7 +461,7 @@ namespace Opie {
-OContactAccessBackend_SQL::OContactAccessBackend_SQL ( const QString& /* appname */,
+OPimContactAccessBackend_SQL::OPimContactAccessBackend_SQL ( const QString& /* appname */,
const QString& filename ):
- OContactAccessBackend(), m_changed(false), m_driver( NULL )
+ OPimContactAccessBackend(), m_changed(false), m_driver( NULL )
{
- qWarning("C'tor OContactAccessBackend_SQL starts");
+ qWarning("C'tor OPimContactAccessBackend_SQL starts");
QTime t;
@@ -482,6 +482,6 @@ OContactAccessBackend_SQL::OContactAccessBackend_SQL ( const QString& /* appname
- qWarning("C'tor OContactAccessBackend_SQL ends: %d ms", t.elapsed() );
+ qWarning("C'tor OPimContactAccessBackend_SQL ends: %d ms", t.elapsed() );
}
-OContactAccessBackend_SQL::~OContactAccessBackend_SQL ()
+OPimContactAccessBackend_SQL::~OPimContactAccessBackend_SQL ()
{
@@ -491,3 +491,3 @@ OContactAccessBackend_SQL::~OContactAccessBackend_SQL ()
-bool OContactAccessBackend_SQL::load ()
+bool OPimContactAccessBackend_SQL::load ()
{
@@ -508,3 +508,3 @@ bool OContactAccessBackend_SQL::load ()
-bool OContactAccessBackend_SQL::reload()
+bool OPimContactAccessBackend_SQL::reload()
{
@@ -513,3 +513,3 @@ bool OContactAccessBackend_SQL::reload()
-bool OContactAccessBackend_SQL::save()
+bool OPimContactAccessBackend_SQL::save()
{
@@ -519,3 +519,3 @@ bool OContactAccessBackend_SQL::save()
-void OContactAccessBackend_SQL::clear ()
+void OPimContactAccessBackend_SQL::clear ()
{
@@ -527,3 +527,3 @@ void OContactAccessBackend_SQL::clear ()
-bool OContactAccessBackend_SQL::wasChangedExternally()
+bool OPimContactAccessBackend_SQL::wasChangedExternally()
{
@@ -532,3 +532,3 @@ bool OContactAccessBackend_SQL::wasChangedExternally()
-QArray<int> OContactAccessBackend_SQL::allRecords() const
+QArray<int> OPimContactAccessBackend_SQL::allRecords() const
{
@@ -538,3 +538,3 @@ QArray<int> OContactAccessBackend_SQL::allRecords() const
if ( m_changed )
- ((OContactAccessBackend_SQL*)this)->update();
+ ((OPimContactAccessBackend_SQL*)this)->update();
@@ -543,3 +543,3 @@ QArray<int> OContactAccessBackend_SQL::allRecords() const
-bool OContactAccessBackend_SQL::add ( const OContact &newcontact )
+bool OPimContactAccessBackend_SQL::add ( const OPimContact &newcontact )
{
@@ -559,3 +559,3 @@ bool OContactAccessBackend_SQL::add ( const OContact &newcontact )
-bool OContactAccessBackend_SQL::remove ( int uid )
+bool OPimContactAccessBackend_SQL::remove ( int uid )
{
@@ -572,3 +572,3 @@ bool OContactAccessBackend_SQL::remove ( int uid )
-bool OContactAccessBackend_SQL::replace ( const OContact &contact )
+bool OPimContactAccessBackend_SQL::replace ( const OPimContact &contact )
{
@@ -581,5 +581,5 @@ bool OContactAccessBackend_SQL::replace ( const OContact &contact )
-OContact OContactAccessBackend_SQL::find ( int uid ) const
+OPimContact OPimContactAccessBackend_SQL::find ( int uid ) const
{
- qWarning("OContactAccessBackend_SQL::find()");
+ qWarning("OPimContactAccessBackend_SQL::find()");
QTime t;
@@ -587,6 +587,6 @@ OContact OContactAccessBackend_SQL::find ( int uid ) const
- OContact retContact( requestNonCustom( uid ) );
+ OPimContact retContact( requestNonCustom( uid ) );
retContact.setExtraMap( requestCustom( uid ) );
- qWarning("OContactAccessBackend_SQL::find() needed: %d ms", t.elapsed() );
+ qWarning("OPimContactAccessBackend_SQL::find() needed: %d ms", t.elapsed() );
return retContact;
@@ -596,3 +596,3 @@ OContact OContactAccessBackend_SQL::find ( int uid ) const
-QArray<int> OContactAccessBackend_SQL::queryByExample ( const OContact &query, int settings, const QDateTime& d = QDateTime() )
+QArray<int> OPimContactAccessBackend_SQL::queryByExample ( const OPimContact &query, int settings, const QDateTime& d = QDateTime() )
{
@@ -601,4 +601,4 @@ QArray<int> OContactAccessBackend_SQL::queryByExample ( const OContact &query, i
QMap<int, QString> queryFields = query.toMap();
- QStringList fieldList = OContactFields::untrfields( false );
- QMap<QString, int> translate = OContactFields::untrFieldsToId();
+ QStringList fieldList = OPimContactFields::untrfields( false );
+ QMap<QString, int> translate = OPimContactFields::untrFieldsToId();
@@ -616,3 +616,3 @@ QArray<int> OContactAccessBackend_SQL::queryByExample ( const OContact &query, i
// Do exist a better solution to switch this ?
- if ( settings & OContactAccess::IgnoreCase )
+ if ( settings & OPimContactAccess::IgnoreCase )
qu += "(\"" + *it + "\"" + " LIKE " + "'"
@@ -645,3 +645,3 @@ QArray<int> OContactAccessBackend_SQL::queryByExample ( const OContact &query, i
-QArray<int> OContactAccessBackend_SQL::matchRegexp( const QRegExp &r ) const
+QArray<int> OPimContactAccessBackend_SQL::matchRegexp( const QRegExp &r ) const
{
@@ -651,11 +651,11 @@ QArray<int> OContactAccessBackend_SQL::matchRegexp( const QRegExp &r ) const
-const uint OContactAccessBackend_SQL::querySettings()
+const uint OPimContactAccessBackend_SQL::querySettings()
{
- return OContactAccess::IgnoreCase
- || OContactAccess::WildCards;
+ return OPimContactAccess::IgnoreCase
+ || OPimContactAccess::WildCards;
}
-bool OContactAccessBackend_SQL::hasQuerySettings (uint querySettings) const
+bool OPimContactAccessBackend_SQL::hasQuerySettings (uint querySettings) const
{
- /* OContactAccess::IgnoreCase, DateDiff, DateYear, DateMonth, DateDay
+ /* OPimContactAccess::IgnoreCase, DateDiff, DateYear, DateMonth, DateDay
* may be added with any of the other settings. IgnoreCase should never used alone.
@@ -666,10 +666,10 @@ bool OContactAccessBackend_SQL::hasQuerySettings (uint querySettings) const
if ( ( querySettings & (
- OContactAccess::IgnoreCase
- | OContactAccess::WildCards
-// | OContactAccess::DateDiff
-// | OContactAccess::DateYear
-// | OContactAccess::DateMonth
-// | OContactAccess::DateDay
-// | OContactAccess::RegExp
-// | OContactAccess::ExactMatch
+ OPimContactAccess::IgnoreCase
+ | OPimContactAccess::WildCards
+// | OPimContactAccess::DateDiff
+// | OPimContactAccess::DateYear
+// | OPimContactAccess::DateMonth
+// | OPimContactAccess::DateDay
+// | OPimContactAccess::RegExp
+// | OPimContactAccess::ExactMatch
) ) != querySettings )
@@ -680,3 +680,3 @@ bool OContactAccessBackend_SQL::hasQuerySettings (uint querySettings) const
// IngoreCase alone is invalid
- if ( querySettings == OContactAccess::IgnoreCase )
+ if ( querySettings == OPimContactAccess::IgnoreCase )
return false;
@@ -684,14 +684,14 @@ bool OContactAccessBackend_SQL::hasQuerySettings (uint querySettings) const
// WildCards, RegExp and ExactMatch should never used at the same time
- switch ( querySettings & ~( OContactAccess::IgnoreCase
- | OContactAccess::DateDiff
- | OContactAccess::DateYear
- | OContactAccess::DateMonth
- | OContactAccess::DateDay
+ switch ( querySettings & ~( OPimContactAccess::IgnoreCase
+ | OPimContactAccess::DateDiff
+ | OPimContactAccess::DateYear
+ | OPimContactAccess::DateMonth
+ | OPimContactAccess::DateDay
)
){
- case OContactAccess::RegExp:
+ case OPimContactAccess::RegExp:
return ( true );
- case OContactAccess::WildCards:
+ case OPimContactAccess::WildCards:
return ( true );
- case OContactAccess::ExactMatch:
+ case OPimContactAccess::ExactMatch:
return ( true );
@@ -705,3 +705,3 @@ bool OContactAccessBackend_SQL::hasQuerySettings (uint querySettings) const
-QArray<int> OContactAccessBackend_SQL::sorted( bool asc, int , int , int )
+QArray<int> OPimContactAccessBackend_SQL::sorted( bool asc, int , int , int )
{
@@ -737,3 +737,3 @@ QArray<int> OContactAccessBackend_SQL::sorted( bool asc, int , int , int )
-void OContactAccessBackend_SQL::update()
+void OPimContactAccessBackend_SQL::update()
{
@@ -758,3 +758,3 @@ void OContactAccessBackend_SQL::update()
-QArray<int> OContactAccessBackend_SQL::extractUids( OSQLResult& res ) const
+QArray<int> OPimContactAccessBackend_SQL::extractUids( OSQLResult& res ) const
{
@@ -780,3 +780,3 @@ QArray<int> OContactAccessBackend_SQL::extractUids( OSQLResult& res ) const
#ifdef __STORE_HORIZONTAL_
-QMap<int, QString> OContactAccessBackend_SQL::requestNonCustom( int uid ) const
+QMap<int, QString> OPimContactAccessBackend_SQL::requestNonCustom( int uid ) const
{
@@ -800,4 +800,4 @@ QMap<int, QString> OContactAccessBackend_SQL::requestNonCustom( int uid ) const
// Now loop through all columns
- QStringList fieldList = OContactFields::untrfields( false );
- QMap<QString, int> translate = OContactFields::untrFieldsToId();
+ QStringList fieldList = OPimContactFields::untrfields( false );
+ QMap<QString, int> translate = OPimContactFields::untrFieldsToId();
for ( QStringList::Iterator it = ++fieldList.begin(); it != fieldList.end(); ++it ){
@@ -822,3 +822,3 @@ QMap<int, QString> OContactAccessBackend_SQL::requestNonCustom( int uid ) const
QDate date( year, month, day );
- nonCustomMap.insert( id, OConversion::dateToString( date ) );
+ nonCustomMap.insert( id, OPimDateConversion::dateToString( date ) );
}
@@ -845,3 +845,3 @@ QMap<int, QString> OContactAccessBackend_SQL::requestNonCustom( int uid ) const
-QMap<int, QString> OContactAccessBackend_SQL::requestNonCustom( int uid ) const
+QMap<int, QString> OPimContactAccessBackend_SQL::requestNonCustom( int uid ) const
{
@@ -868,3 +868,3 @@ QMap<int, QString> OContactAccessBackend_SQL::requestNonCustom( int uid ) const
t3.start();
- QMap<QString, int> translateMap = OContactFields::untrFieldsToId();
+ QMap<QString, int> translateMap = OPimContactFields::untrFieldsToId();
@@ -889,3 +889,3 @@ QMap<int, QString> OContactAccessBackend_SQL::requestNonCustom( int uid ) const
QDate date( year, month, day );
- nonCustomMap.insert( typeId, OConversion::dateToString( date ) );
+ nonCustomMap.insert( typeId, OPimDateConversion::dateToString( date ) );
}
@@ -908,3 +908,3 @@ QMap<int, QString> OContactAccessBackend_SQL::requestNonCustom( int uid ) const
-QMap<QString, QString> OContactAccessBackend_SQL::requestCustom( int uid ) const
+QMap<QString, QString> OPimContactAccessBackend_SQL::requestCustom( int uid ) const
{
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_sql.h b/libopie2/opiepim/backend/ocontactaccessbackend_sql.h
index 55b95fd..58ae2ae 100644
--- a/libopie2/opiepim/backend/ocontactaccessbackend_sql.h
+++ b/libopie2/opiepim/backend/ocontactaccessbackend_sql.h
@@ -32,4 +32,4 @@
-#ifndef _OContactAccessBackend_SQL_
-#define _OContactAccessBackend_SQL_
+#ifndef _OPimContactAccessBackend_SQL_
+#define _OPimContactAccessBackend_SQL_
@@ -51,10 +51,10 @@ namespace Opie {
* This class is the SQL implementation of a Contact backend
- * it does implement everything available for OContact.
+ * it does implement everything available for OPimContact.
* @see OPimAccessBackend for more information of available methods
*/
-class OContactAccessBackend_SQL : public OContactAccessBackend {
+class OPimContactAccessBackend_SQL : public OPimContactAccessBackend {
public:
- OContactAccessBackend_SQL ( const QString& appname, const QString& filename = QString::null );
+ OPimContactAccessBackend_SQL ( const QString& appname, const QString& filename = QString::null );
- ~OContactAccessBackend_SQL ();
+ ~OPimContactAccessBackend_SQL ();
@@ -70,7 +70,7 @@ class OContactAccessBackend_SQL : public OContactAccessBackend {
- OContact find ( int uid ) const;
+ OPimContact find ( int uid ) const;
// FIXME: Add lookahead-cache support !
- //OContact find(int uid, const QArray<int>&, uint cur, Frontend::CacheDirection )const;
+ //OPimContact find(int uid, const QArray<int>&, uint cur, Frontend::CacheDirection )const;
- QArray<int> queryByExample ( const OContact &query, int settings,
+ QArray<int> queryByExample ( const OPimContact &query, int settings,
const QDateTime& d );
@@ -85,5 +85,5 @@ class OContactAccessBackend_SQL : public OContactAccessBackend {
QArray<int> sorted( bool asc, int , int , int );
- bool add ( const OContact &newcontact );
+ bool add ( const OPimContact &newcontact );
- bool replace ( const OContact &contact );
+ bool replace ( const OPimContact &contact );
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp
index f85cf38..b569f8b 100644
--- a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp
+++ b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp
@@ -41,3 +41,3 @@ namespace Opie {
-OContactAccessBackend_VCard::OContactAccessBackend_VCard ( const QString& , const QString& filename ):
+OPimContactAccessBackend_VCard::OPimContactAccessBackend_VCard ( const QString& , const QString& filename ):
m_dirty( false ),
@@ -49,3 +49,3 @@ OContactAccessBackend_VCard::OContactAccessBackend_VCard ( const QString& , cons
-bool OContactAccessBackend_VCard::load ()
+bool OPimContactAccessBackend_VCard::load ()
{
@@ -66,3 +66,3 @@ bool OContactAccessBackend_VCard::load ()
while ( obj ) {
- OContact con = parseVObject( obj );
+ OPimContact con = parseVObject( obj );
/*
@@ -87,3 +87,3 @@ bool OContactAccessBackend_VCard::load ()
}
-bool OContactAccessBackend_VCard::reload()
+bool OPimContactAccessBackend_VCard::reload()
{
@@ -91,3 +91,3 @@ bool OContactAccessBackend_VCard::reload()
}
-bool OContactAccessBackend_VCard::save()
+bool OPimContactAccessBackend_VCard::save()
{
@@ -105,3 +105,3 @@ bool OContactAccessBackend_VCard::save()
VObject *vo;
- for(QMap<int, OContact>::ConstIterator it=m_map.begin(); it !=m_map.end(); ++it ){
+ for(QMap<int, OPimContact>::ConstIterator it=m_map.begin(); it !=m_map.end(); ++it ){
vo = createVObject( *it );
@@ -118,3 +118,3 @@ bool OContactAccessBackend_VCard::save()
}
-void OContactAccessBackend_VCard::clear ()
+void OPimContactAccessBackend_VCard::clear ()
{
@@ -124,3 +124,3 @@ void OContactAccessBackend_VCard::clear ()
-bool OContactAccessBackend_VCard::add ( const OContact& newcontact )
+bool OPimContactAccessBackend_VCard::add ( const OPimContact& newcontact )
{
@@ -131,3 +131,3 @@ bool OContactAccessBackend_VCard::add ( const OContact& newcontact )
-bool OContactAccessBackend_VCard::remove ( int uid )
+bool OPimContactAccessBackend_VCard::remove ( int uid )
{
@@ -138,3 +138,3 @@ bool OContactAccessBackend_VCard::remove ( int uid )
-bool OContactAccessBackend_VCard::replace ( const OContact &contact )
+bool OPimContactAccessBackend_VCard::replace ( const OPimContact &contact )
{
@@ -145,3 +145,3 @@ bool OContactAccessBackend_VCard::replace ( const OContact &contact )
-OContact OContactAccessBackend_VCard::find ( int uid ) const
+OPimContact OPimContactAccessBackend_VCard::find ( int uid ) const
{
@@ -150,6 +150,6 @@ OContact OContactAccessBackend_VCard::find ( int uid ) const
-QArray<int> OContactAccessBackend_VCard::allRecords() const
+QArray<int> OPimContactAccessBackend_VCard::allRecords() const
{
QArray<int> ar( m_map.count() );
- QMap<int, OContact>::ConstIterator it;
+ QMap<int, OPimContact>::ConstIterator it;
int i = 0;
@@ -163,3 +163,3 @@ QArray<int> OContactAccessBackend_VCard::allRecords() const
// Not implemented
-QArray<int> OContactAccessBackend_VCard::queryByExample ( const OContact&, int, const QDateTime& )
+QArray<int> OPimContactAccessBackend_VCard::queryByExample ( const OPimContact&, int, const QDateTime& )
{
@@ -170,3 +170,3 @@ QArray<int> OContactAccessBackend_VCard::queryByExample ( const OContact&, int,
// Not implemented
-QArray<int> OContactAccessBackend_VCard::matchRegexp( const QRegExp& ) const
+QArray<int> OPimContactAccessBackend_VCard::matchRegexp( const QRegExp& ) const
{
@@ -176,3 +176,3 @@ QArray<int> OContactAccessBackend_VCard::matchRegexp( const QRegExp& ) const
-const uint OContactAccessBackend_VCard::querySettings()
+const uint OPimContactAccessBackend_VCard::querySettings()
{
@@ -181,3 +181,3 @@ const uint OContactAccessBackend_VCard::querySettings()
-bool OContactAccessBackend_VCard::hasQuerySettings (uint ) const
+bool OPimContactAccessBackend_VCard::hasQuerySettings (uint ) const
{
@@ -186,3 +186,3 @@ bool OContactAccessBackend_VCard::hasQuerySettings (uint ) const
-bool OContactAccessBackend_VCard::wasChangedExternally()
+bool OPimContactAccessBackend_VCard::wasChangedExternally()
{
@@ -192,3 +192,3 @@ bool OContactAccessBackend_VCard::wasChangedExternally()
// Not implemented
-QArray<int> OContactAccessBackend_VCard::sorted( bool , int, int, int )
+QArray<int> OPimContactAccessBackend_VCard::sorted( bool , int, int, int )
{
@@ -201,5 +201,5 @@ QArray<int> OContactAccessBackend_VCard::sorted( bool , int, int, int )
-OContact OContactAccessBackend_VCard::parseVObject( VObject *obj )
+OPimContact OPimContactAccessBackend_VCard::parseVObject( VObject *obj )
{
- OContact c;
+ OPimContact c;
@@ -429,3 +429,3 @@ OContact OContactAccessBackend_VCard::parseVObject( VObject *obj )
-VObject* OContactAccessBackend_VCard::createVObject( const OContact &c )
+VObject* OPimContactAccessBackend_VCard::createVObject( const OPimContact &c )
{
@@ -535,3 +535,3 @@ VObject* OContactAccessBackend_VCard::createVObject( const OContact &c )
-QString OContactAccessBackend_VCard::convDateToVCardDate( const QDate& d ) const
+QString OPimContactAccessBackend_VCard::convDateToVCardDate( const QDate& d ) const
{
@@ -549,3 +549,3 @@ QString OContactAccessBackend_VCard::convDateToVCardDate( const QDate& d ) const
-QDate OContactAccessBackend_VCard::convVCardDateToDate( const QString& datestr )
+QDate OPimContactAccessBackend_VCard::convVCardDateToDate( const QString& datestr )
{
@@ -574,3 +574,3 @@ QDate OContactAccessBackend_VCard::convVCardDateToDate( const QString& datestr )
-VObject* OContactAccessBackend_VCard::safeAddPropValue( VObject *o, const char *prop, const QString &value )
+VObject* OPimContactAccessBackend_VCard::safeAddPropValue( VObject *o, const char *prop, const QString &value )
{
@@ -582,3 +582,3 @@ VObject* OContactAccessBackend_VCard::safeAddPropValue( VObject *o, const char *
-VObject* OContactAccessBackend_VCard::safeAddProp( VObject *o, const char *prop)
+VObject* OPimContactAccessBackend_VCard::safeAddProp( VObject *o, const char *prop)
{
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.h b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.h
index 11be027..2a786af 100644
--- a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.h
+++ b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.h
@@ -34,3 +34,3 @@
-#include <opie2/ocontact.h>
+#include <opie2/opimcontact.h>
@@ -43,8 +43,8 @@ namespace Opie {
* This is the vCard 2.1 implementation of the Contact Storage
- * @see OContactAccessBackend_XML
+ * @see OPimContactAccessBackend_XML
* @see OPimAccessBackend
*/
-class OContactAccessBackend_VCard : public OContactAccessBackend {
+class OPimContactAccessBackend_VCard : public OPimContactAccessBackend {
public:
- OContactAccessBackend_VCard ( const QString& appname, const QString& filename = QString::null );
+ OPimContactAccessBackend_VCard ( const QString& appname, const QString& filename = QString::null );
@@ -55,9 +55,9 @@ class OContactAccessBackend_VCard : public OContactAccessBackend {
- bool add ( const OContact& newcontact );
+ bool add ( const OPimContact& newcontact );
bool remove ( int uid );
- bool replace ( const OContact& contact );
+ bool replace ( const OPimContact& contact );
- OContact find ( int uid ) const;
+ OPimContact find ( int uid ) const;
QArray<int> allRecords() const;
- QArray<int> queryByExample ( const OContact &query, int settings, const QDateTime& d = QDateTime() );
+ QArray<int> queryByExample ( const OPimContact &query, int settings, const QDateTime& d = QDateTime() );
QArray<int> matchRegexp( const QRegExp &r ) const;
@@ -70,4 +70,4 @@ class OContactAccessBackend_VCard : public OContactAccessBackend {
private:
- OContact parseVObject( VObject* obj );
- VObject* createVObject( const OContact& c );
+ OPimContact parseVObject( VObject* obj );
+ VObject* createVObject( const OPimContact& c );
QString convDateToVCardDate( const QDate& c ) const;
@@ -79,3 +79,3 @@ private:
QString m_file;
- QMap<int, OContact> m_map;
+ QMap<int, OPimContact> m_map;
};
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp b/libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp
index 07ad29a..0adba68 100644
--- a/libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp
+++ b/libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp
@@ -56,3 +56,3 @@ using namespace Opie;
namespace Opie {
-OContactAccessBackend_XML::OContactAccessBackend_XML ( const QString& appname, const QString& filename ):
+OPimContactAccessBackend_XML::OPimContactAccessBackend_XML ( const QString& appname, const QString& filename ):
m_changed( false )
@@ -80,3 +80,3 @@ OContactAccessBackend_XML::OContactAccessBackend_XML ( const QString& appname, c
-bool OContactAccessBackend_XML::save()
+bool OPimContactAccessBackend_XML::save()
{
@@ -106,3 +106,3 @@ bool OContactAccessBackend_XML::save()
// Write all contacts
- QListIterator<OContact> it( m_contactList );
+ QListIterator<OPimContact> it( m_contactList );
for ( ; it.current(); ++it ) {
@@ -150,3 +150,3 @@ bool OContactAccessBackend_XML::save()
-bool OContactAccessBackend_XML::load ()
+bool OPimContactAccessBackend_XML::load ()
{
@@ -169,3 +169,3 @@ bool OContactAccessBackend_XML::load ()
-void OContactAccessBackend_XML::clear ()
+void OPimContactAccessBackend_XML::clear ()
{
@@ -177,3 +177,3 @@ void OContactAccessBackend_XML::clear ()
-bool OContactAccessBackend_XML::wasChangedExternally()
+bool OPimContactAccessBackend_XML::wasChangedExternally()
{
@@ -186,3 +186,3 @@ bool OContactAccessBackend_XML::wasChangedExternally()
-QArray<int> OContactAccessBackend_XML::allRecords() const
+QArray<int> OPimContactAccessBackend_XML::allRecords() const
{
@@ -191,3 +191,3 @@ QArray<int> OContactAccessBackend_XML::allRecords() const
uint counter = 0;
- QListIterator<OContact> it( m_contactList );
+ QListIterator<OPimContact> it( m_contactList );
for( ; it.current(); ++it ){
@@ -199,7 +199,7 @@ QArray<int> OContactAccessBackend_XML::allRecords() const
-OContact OContactAccessBackend_XML::find ( int uid ) const
+OPimContact OPimContactAccessBackend_XML::find ( int uid ) const
{
- OContact foundContact; //Create empty contact
+ OPimContact foundContact; //Create empty contact
- OContact* found = m_uidToContact.find( QString().setNum( uid ) );
+ OPimContact* found = m_uidToContact.find( QString().setNum( uid ) );
@@ -212,3 +212,3 @@ OContact OContactAccessBackend_XML::find ( int uid ) const
-QArray<int> OContactAccessBackend_XML::queryByExample ( const OContact &query, int settings,
+QArray<int> OPimContactAccessBackend_XML::queryByExample ( const OPimContact &query, int settings,
const QDateTime& d )
@@ -217,3 +217,3 @@ QArray<int> OContactAccessBackend_XML::queryByExample ( const OContact &query, i
QArray<int> m_currentQuery( m_contactList.count() );
- QListIterator<OContact> it( m_contactList );
+ QListIterator<OPimContact> it( m_contactList );
uint arraycounter = 0;
@@ -242,3 +242,3 @@ QArray<int> OContactAccessBackend_XML::queryByExample ( const OContact &query, i
if( checkDate->isValid() ){
- if ( settings & OContactAccess::DateYear ){
+ if ( settings & OPimContactAccess::DateYear ){
if ( queryDate->year() != checkDate->year() )
@@ -246,3 +246,3 @@ QArray<int> OContactAccessBackend_XML::queryByExample ( const OContact &query, i
}
- if ( settings & OContactAccess::DateMonth ){
+ if ( settings & OPimContactAccess::DateMonth ){
if ( queryDate->month() != checkDate->month() )
@@ -250,3 +250,3 @@ QArray<int> OContactAccessBackend_XML::queryByExample ( const OContact &query, i
}
- if ( settings & OContactAccess::DateDay ){
+ if ( settings & OPimContactAccess::DateDay ){
if ( queryDate->day() != checkDate->day() )
@@ -254,3 +254,3 @@ QArray<int> OContactAccessBackend_XML::queryByExample ( const OContact &query, i
}
- if ( settings & OContactAccess::DateDiff ) {
+ if ( settings & OPimContactAccess::DateDiff ) {
QDate current;
@@ -303,13 +303,13 @@ QArray<int> OContactAccessBackend_XML::queryByExample ( const OContact &query, i
if ( !query.field(i).isEmpty() ){
- switch ( settings & ~( OContactAccess::IgnoreCase
- | OContactAccess::DateDiff
- | OContactAccess::DateYear
- | OContactAccess::DateMonth
- | OContactAccess::DateDay
- | OContactAccess::MatchOne
+ switch ( settings & ~( OPimContactAccess::IgnoreCase
+ | OPimContactAccess::DateDiff
+ | OPimContactAccess::DateYear
+ | OPimContactAccess::DateMonth
+ | OPimContactAccess::DateDay
+ | OPimContactAccess::MatchOne
) ){
- case OContactAccess::RegExp:{
+ case OPimContactAccess::RegExp:{
QRegExp expr ( query.field(i),
- !(settings & OContactAccess::IgnoreCase),
+ !(settings & OPimContactAccess::IgnoreCase),
false );
@@ -319,5 +319,5 @@ QArray<int> OContactAccessBackend_XML::queryByExample ( const OContact &query, i
break;
- case OContactAccess::WildCards:{
+ case OPimContactAccess::WildCards:{
QRegExp expr ( query.field(i),
- !(settings & OContactAccess::IgnoreCase),
+ !(settings & OPimContactAccess::IgnoreCase),
true );
@@ -327,4 +327,4 @@ QArray<int> OContactAccessBackend_XML::queryByExample ( const OContact &query, i
break;
- case OContactAccess::ExactMatch:{
- if (settings & OContactAccess::IgnoreCase){
+ case OPimContactAccess::ExactMatch:{
+ if (settings & OPimContactAccess::IgnoreCase){
if ( query.field(i).upper() !=
@@ -353,6 +353,6 @@ QArray<int> OContactAccessBackend_XML::queryByExample ( const OContact &query, i
-QArray<int> OContactAccessBackend_XML::matchRegexp( const QRegExp &r ) const
+QArray<int> OPimContactAccessBackend_XML::matchRegexp( const QRegExp &r ) const
{
QArray<int> m_currentQuery( m_contactList.count() );
- QListIterator<OContact> it( m_contactList );
+ QListIterator<OPimContact> it( m_contactList );
uint arraycounter = 0;
@@ -371,12 +371,12 @@ QArray<int> OContactAccessBackend_XML::matchRegexp( const QRegExp &r ) const
-const uint OContactAccessBackend_XML::querySettings()
+const uint OPimContactAccessBackend_XML::querySettings()
{
- return ( OContactAccess::WildCards
- | OContactAccess::IgnoreCase
- | OContactAccess::RegExp
- | OContactAccess::ExactMatch
- | OContactAccess::DateDiff
- | OContactAccess::DateYear
- | OContactAccess::DateMonth
- | OContactAccess::DateDay
+ return ( OPimContactAccess::WildCards
+ | OPimContactAccess::IgnoreCase
+ | OPimContactAccess::RegExp
+ | OPimContactAccess::ExactMatch
+ | OPimContactAccess::DateDiff
+ | OPimContactAccess::DateYear
+ | OPimContactAccess::DateMonth
+ | OPimContactAccess::DateDay
);
@@ -384,5 +384,5 @@ const uint OContactAccessBackend_XML::querySettings()
-bool OContactAccessBackend_XML::hasQuerySettings (uint querySettings) const
+bool OPimContactAccessBackend_XML::hasQuerySettings (uint querySettings) const
{
- /* OContactAccess::IgnoreCase, DateDiff, DateYear, DateMonth, DateDay
+ /* OPimContactAccess::IgnoreCase, DateDiff, DateYear, DateMonth, DateDay
* may be added with any of the other settings. IgnoreCase should never used alone.
@@ -393,10 +393,10 @@ bool OContactAccessBackend_XML::hasQuerySettings (uint querySettings) const
if ( ( querySettings & (
- OContactAccess::IgnoreCase
- | OContactAccess::WildCards
- | OContactAccess::DateDiff
- | OContactAccess::DateYear
- | OContactAccess::DateMonth
- | OContactAccess::DateDay
- | OContactAccess::RegExp
- | OContactAccess::ExactMatch
+ OPimContactAccess::IgnoreCase
+ | OPimContactAccess::WildCards
+ | OPimContactAccess::DateDiff
+ | OPimContactAccess::DateYear
+ | OPimContactAccess::DateMonth
+ | OPimContactAccess::DateDay
+ | OPimContactAccess::RegExp
+ | OPimContactAccess::ExactMatch
) ) != querySettings )
@@ -407,3 +407,3 @@ bool OContactAccessBackend_XML::hasQuerySettings (uint querySettings) const
// IngoreCase alone is invalid
- if ( querySettings == OContactAccess::IgnoreCase )
+ if ( querySettings == OPimContactAccess::IgnoreCase )
return false;
@@ -411,14 +411,14 @@ bool OContactAccessBackend_XML::hasQuerySettings (uint querySettings) const
// WildCards, RegExp and ExactMatch should never used at the same time
- switch ( querySettings & ~( OContactAccess::IgnoreCase
- | OContactAccess::DateDiff
- | OContactAccess::DateYear
- | OContactAccess::DateMonth
- | OContactAccess::DateDay
+ switch ( querySettings & ~( OPimContactAccess::IgnoreCase
+ | OPimContactAccess::DateDiff
+ | OPimContactAccess::DateYear
+ | OPimContactAccess::DateMonth
+ | OPimContactAccess::DateDay
)
){
- case OContactAccess::RegExp:
+ case OPimContactAccess::RegExp:
return ( true );
- case OContactAccess::WildCards:
+ case OPimContactAccess::WildCards:
return ( true );
- case OContactAccess::ExactMatch:
+ case OPimContactAccess::ExactMatch:
return ( true );
@@ -432,3 +432,3 @@ bool OContactAccessBackend_XML::hasQuerySettings (uint querySettings) const
// Currently only asc implemented..
-QArray<int> OContactAccessBackend_XML::sorted( bool asc, int , int , int )
+QArray<int> OPimContactAccessBackend_XML::sorted( bool asc, int , int , int )
{
@@ -440,3 +440,3 @@ QArray<int> OContactAccessBackend_XML::sorted( bool asc, int , int , int )
// Afterwards sort namelist and use map to fill array to return..
- QListIterator<OContact> it( m_contactList );
+ QListIterator<OPimContact> it( m_contactList );
for( ; it.current(); ++it ){
@@ -460,3 +460,3 @@ QArray<int> OContactAccessBackend_XML::sorted( bool asc, int , int , int )
-bool OContactAccessBackend_XML::add ( const OContact &newcontact )
+bool OPimContactAccessBackend_XML::add ( const OPimContact &newcontact )
{
@@ -471,3 +471,3 @@ bool OContactAccessBackend_XML::add ( const OContact &newcontact )
-bool OContactAccessBackend_XML::replace ( const OContact &contact )
+bool OPimContactAccessBackend_XML::replace ( const OPimContact &contact )
{
@@ -475,6 +475,6 @@ bool OContactAccessBackend_XML::replace ( const OContact &contact )
- OContact* found = m_uidToContact.find ( QString().setNum( contact.uid() ) );
+ OPimContact* found = m_uidToContact.find ( QString().setNum( contact.uid() ) );
if ( found ) {
- OContact* newCont = new OContact( contact );
+ OPimContact* newCont = new OPimContact( contact );
@@ -493,3 +493,3 @@ bool OContactAccessBackend_XML::replace ( const OContact &contact )
-bool OContactAccessBackend_XML::remove ( int uid )
+bool OPimContactAccessBackend_XML::remove ( int uid )
{
@@ -497,3 +497,3 @@ bool OContactAccessBackend_XML::remove ( int uid )
- OContact* found = m_uidToContact.find ( QString().setNum( uid ) );
+ OPimContact* found = m_uidToContact.find ( QString().setNum( uid ) );
@@ -509,3 +509,3 @@ bool OContactAccessBackend_XML::remove ( int uid )
-bool OContactAccessBackend_XML::reload(){
+bool OPimContactAccessBackend_XML::reload(){
/* Reload is the same as load in this implementation */
@@ -514,5 +514,5 @@ bool OContactAccessBackend_XML::reload(){
-void OContactAccessBackend_XML::addContact_p( const OContact &newcontact )
+void OPimContactAccessBackend_XML::addContact_p( const OPimContact &newcontact )
{
- OContact* contRef = new OContact( newcontact );
+ OPimContact* contRef = new OPimContact( newcontact );
@@ -523,3 +523,3 @@ void OContactAccessBackend_XML::addContact_p( const OContact &newcontact )
/* This function loads the xml-database and the journalfile */
-bool OContactAccessBackend_XML::load( const QString filename, bool isJournal )
+bool OPimContactAccessBackend_XML::load( const QString filename, bool isJournal )
{
@@ -592,3 +592,3 @@ bool OContactAccessBackend_XML::load( const QString filename, bool isJournal )
- //qWarning( "OContactDefaultBackEnd::loading %s", filename.latin1() );
+ //qWarning( "OPimContactDefaultBackEnd::loading %s", filename.latin1() );
@@ -600,3 +600,3 @@ bool OContactAccessBackend_XML::load( const QString filename, bool isJournal )
XMLElement *element = root->firstChild();
- //qWarning("OContactAccess::load tagName(): %s", root->tagName().latin1() );
+ //qWarning("OPimContactAccess::load tagName(): %s", root->tagName().latin1() );
element = element->firstChild();
@@ -606,3 +606,3 @@ bool OContactAccessBackend_XML::load( const QString filename, bool isJournal )
if( element->tagName() != QString::fromLatin1("Contacts") ){
- //qWarning ("OContactDefBack::Searching for Tag \"Contacts\"! Found: %s",
+ //qWarning ("OPimContactDefBack::Searching for Tag \"Contacts\"! Found: %s",
// element->tagName().latin1());
@@ -617,3 +617,3 @@ bool OContactAccessBackend_XML::load( const QString filename, bool isJournal )
if( element->tagName() != QString::fromLatin1("Contact") ){
- //qWarning ("OContactDefBack::Searching for Tag \"Contact\"! Found: %s",
+ //qWarning ("OPimContactDefBack::Searching for Tag \"Contact\"! Found: %s",
// element->tagName().latin1());
@@ -625,3 +625,3 @@ bool OContactAccessBackend_XML::load( const QString filename, bool isJournal )
*/
- //qWarning("OContactDefBack::load element tagName() : %s",
+ //qWarning("OPimContactDefBack::load element tagName() : %s",
// element->tagName().latin1() );
@@ -672,3 +672,3 @@ bool OContactAccessBackend_XML::load( const QString filename, bool isJournal )
/* now generate the Contact contact */
- OContact contact( contactMap );
+ OPimContact contact( contactMap );
@@ -715,3 +715,3 @@ bool OContactAccessBackend_XML::load( const QString filename, bool isJournal )
-void OContactAccessBackend_XML::updateJournal( const OContact& cnt,
+void OPimContactAccessBackend_XML::updateJournal( const OPimContact& cnt,
journal_action action )
@@ -743,3 +743,3 @@ void OContactAccessBackend_XML::updateJournal( const OContact& cnt,
-void OContactAccessBackend_XML::removeJournal()
+void OPimContactAccessBackend_XML::removeJournal()
{
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_xml.h b/libopie2/opiepim/backend/ocontactaccessbackend_xml.h
index f439c4c..eaea352 100644
--- a/libopie2/opiepim/backend/ocontactaccessbackend_xml.h
+++ b/libopie2/opiepim/backend/ocontactaccessbackend_xml.h
@@ -32,4 +32,4 @@
-#ifndef _OContactAccessBackend_XML_
-#define _OContactAccessBackend_XML_
+#ifndef _OPimContactAccessBackend_XML_
+#define _OPimContactAccessBackend_XML_
@@ -45,8 +45,8 @@ namespace Opie {
* This class is the XML implementation of a Contact backend
- * it does implement everything available for OContact.
+ * it does implement everything available for OPimContact.
* @see OPimAccessBackend for more information of available methods
*/
-class OContactAccessBackend_XML : public OContactAccessBackend {
+class OPimContactAccessBackend_XML : public OPimContactAccessBackend {
public:
- OContactAccessBackend_XML ( const QString& appname, const QString& filename = QString::null );
+ OPimContactAccessBackend_XML ( const QString& appname, const QString& filename = QString::null );
@@ -62,5 +62,5 @@ class OContactAccessBackend_XML : public OContactAccessBackend {
- OContact find ( int uid ) const;
+ OPimContact find ( int uid ) const;
- QArray<int> queryByExample ( const OContact &query, int settings, const QDateTime& d = QDateTime() );
+ QArray<int> queryByExample ( const OPimContact &query, int settings, const QDateTime& d = QDateTime() );
@@ -74,5 +74,5 @@ class OContactAccessBackend_XML : public OContactAccessBackend {
QArray<int> sorted( bool asc, int , int , int );
- bool add ( const OContact &newcontact );
+ bool add ( const OPimContact &newcontact );
- bool replace ( const OContact &contact );
+ bool replace ( const OPimContact &contact );
@@ -85,3 +85,3 @@ class OContactAccessBackend_XML : public OContactAccessBackend {
- void addContact_p( const OContact &newcontact );
+ void addContact_p( const OPimContact &newcontact );
@@ -91,3 +91,3 @@ class OContactAccessBackend_XML : public OContactAccessBackend {
- void updateJournal( const OContact& cnt, journal_action action );
+ void updateJournal( const OPimContact& cnt, journal_action action );
void removeJournal();
@@ -99,6 +99,6 @@ class OContactAccessBackend_XML : public OContactAccessBackend {
QString m_appName;
- QList<OContact> m_contactList;
+ QList<OPimContact> m_contactList;
QDateTime m_readtime;
- QDict<OContact> m_uidToContact;
+ QDict<OPimContact> m_uidToContact;
};
diff --git a/libopie2/opiepim/backend/odatebookaccessbackend.cpp b/libopie2/opiepim/backend/odatebookaccessbackend.cpp
index 9bf4bf0..f3b7b5f 100644
--- a/libopie2/opiepim/backend/odatebookaccessbackend.cpp
+++ b/libopie2/opiepim/backend/odatebookaccessbackend.cpp
@@ -30,3 +30,3 @@
-#include <opie2/orecur.h>
+#include <opie2/opimrecurrence.h>
@@ -38,3 +38,3 @@ namespace {
/* a small helper to get all NonRepeating events for a range of time */
- void events( OEffectiveEvent::ValueList& tmpList, const OEvent::ValueList& events,
+ void events( OEffectiveEvent::ValueList& tmpList, const OPimEvent::ValueList& events,
const QDate& from, const QDate& to ) {
@@ -42,3 +42,3 @@ namespace {
- for ( OEvent::ValueList::ConstIterator it = events.begin(); it != events.end(); ++it ) {
+ for ( OPimEvent::ValueList::ConstIterator it = events.begin(); it != events.end(); ++it ) {
dtStart = (*it).startDateTime();
@@ -93,9 +93,9 @@ namespace {
- void repeat( OEffectiveEvent::ValueList& tmpList, const OEvent::ValueList& list,
+ void repeat( OEffectiveEvent::ValueList& tmpList, const OPimEvent::ValueList& list,
const QDate& from, const QDate& to ) {
QDate repeat;
- for ( OEvent::ValueList::ConstIterator it = list.begin(); it != list.end(); ++it ) {
+ for ( OPimEvent::ValueList::ConstIterator it = list.begin(); it != list.end(); ++it ) {
int dur = (*it).startDateTime().date().daysTo( (*it).endDateTime().date() );
QDate itDate = from.addDays(-dur );
- ORecur rec = (*it).recurrence();
+ OPimRecurrence rec = (*it).recurrence();
if ( !rec.hasEndDate() || rec.endDate() > to ) {
@@ -154,3 +154,3 @@ namespace Opie {
ODateBookAccessBackend::ODateBookAccessBackend()
- : OPimAccessBackend<OEvent>()
+ : OPimAccessBackend<OPimEvent>()
{
@@ -164,3 +164,3 @@ OEffectiveEvent::ValueList ODateBookAccessBackend::effectiveEvents( const QDate&
OEffectiveEvent::ValueList tmpList;
- OEvent::ValueList list = directNonRepeats();
+ OPimEvent::ValueList list = directNonRepeats();
@@ -192,3 +192,3 @@ OEffectiveEvent::ValueList ODateBookAccessBackend::effectiveNonRepeatingEvents(
OEffectiveEvent::ValueList tmpList;
- OEvent::ValueList list = directNonRepeats();
+ OPimEvent::ValueList list = directNonRepeats();
diff --git a/libopie2/opiepim/backend/odatebookaccessbackend.h b/libopie2/opiepim/backend/odatebookaccessbackend.h
index 6853670..a9cce6a 100644
--- a/libopie2/opiepim/backend/odatebookaccessbackend.h
+++ b/libopie2/opiepim/backend/odatebookaccessbackend.h
@@ -34,3 +34,3 @@
#include <opie2/opimaccessbackend.h>
-#include <opie2/oevent.h>
+#include <opie2/opimevent.h>
@@ -42,3 +42,3 @@ namespace Opie {
*/
-class ODateBookAccessBackend : public OPimAccessBackend<OEvent> {
+class ODateBookAccessBackend : public OPimAccessBackend<OPimEvent> {
public:
@@ -78,3 +78,3 @@ public:
*/
- virtual OEvent::ValueList directNonRepeats() = 0;
+ virtual OPimEvent::ValueList directNonRepeats() = 0;
@@ -83,3 +83,3 @@ public:
*/
- virtual OEvent::ValueList directRawRepeats() = 0;
+ virtual OPimEvent::ValueList directRawRepeats() = 0;
diff --git a/libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp b/libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp
index e79696c..2ee76cc 100644
--- a/libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp
+++ b/libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp
@@ -45,3 +45,3 @@
-#include <opie2/orecur.h>
+#include <opie2/opimrecurrence.h>
#include <opie2/odatebookaccessbackend_sql.h>
@@ -77,23 +77,23 @@ void ODateBookAccessBackend_SQL::initFields()
// the names of the table columns
- m_fieldMap.insert( OEvent::FUid, "uid" );
- m_fieldMap.insert( OEvent::FCategories, "Categories" );
- m_fieldMap.insert( OEvent::FDescription, "Description" );
- m_fieldMap.insert( OEvent::FLocation, "Location" );
- m_fieldMap.insert( OEvent::FType, "Type" );
- m_fieldMap.insert( OEvent::FAlarm, "Alarm" );
- m_fieldMap.insert( OEvent::FSound, "Sound" );
- m_fieldMap.insert( OEvent::FRType, "RType" );
- m_fieldMap.insert( OEvent::FRWeekdays, "RWeekdays" );
- m_fieldMap.insert( OEvent::FRPosition, "RPosition" );
- m_fieldMap.insert( OEvent::FRFreq, "RFreq" );
- m_fieldMap.insert( OEvent::FRHasEndDate, "RHasEndDate" );
- m_fieldMap.insert( OEvent::FREndDate, "REndDate" );
- m_fieldMap.insert( OEvent::FRCreated, "RCreated" );
- m_fieldMap.insert( OEvent::FRExceptions, "RExceptions" );
- m_fieldMap.insert( OEvent::FStart, "Start" );
- m_fieldMap.insert( OEvent::FEnd, "End" );
- m_fieldMap.insert( OEvent::FNote, "Note" );
- m_fieldMap.insert( OEvent::FTimeZone, "TimeZone" );
- m_fieldMap.insert( OEvent::FRecParent, "RecParent" );
- m_fieldMap.insert( OEvent::FRecChildren, "Recchildren" );
+ m_fieldMap.insert( OPimEvent::FUid, "uid" );
+ m_fieldMap.insert( OPimEvent::FCategories, "Categories" );
+ m_fieldMap.insert( OPimEvent::FDescription, "Description" );
+ m_fieldMap.insert( OPimEvent::FLocation, "Location" );
+ m_fieldMap.insert( OPimEvent::FType, "Type" );
+ m_fieldMap.insert( OPimEvent::FAlarm, "Alarm" );
+ m_fieldMap.insert( OPimEvent::FSound, "Sound" );
+ m_fieldMap.insert( OPimEvent::FRType, "RType" );
+ m_fieldMap.insert( OPimEvent::FRWeekdays, "RWeekdays" );
+ m_fieldMap.insert( OPimEvent::FRPosition, "RPosition" );
+ m_fieldMap.insert( OPimEvent::FRFreq, "RFreq" );
+ m_fieldMap.insert( OPimEvent::FRHasEndDate, "RHasEndDate" );
+ m_fieldMap.insert( OPimEvent::FREndDate, "REndDate" );
+ m_fieldMap.insert( OPimEvent::FRCreated, "RCreated" );
+ m_fieldMap.insert( OPimEvent::FRExceptions, "RExceptions" );
+ m_fieldMap.insert( OPimEvent::FStart, "Start" );
+ m_fieldMap.insert( OPimEvent::FEnd, "End" );
+ m_fieldMap.insert( OPimEvent::FNote, "Note" );
+ m_fieldMap.insert( OPimEvent::FTimeZone, "TimeZone" );
+ m_fieldMap.insert( OPimEvent::FRecParent, "RecParent" );
+ m_fieldMap.insert( OPimEvent::FRecChildren, "Recchildren" );
@@ -167,3 +167,3 @@ QArray<int> ODateBookAccessBackend_SQL::allRecords()const
-QArray<int> ODateBookAccessBackend_SQL::queryByExample(const OEvent&, int, const QDateTime& ) {
+QArray<int> ODateBookAccessBackend_SQL::queryByExample(const OPimEvent&, int, const QDateTime& ) {
return QArray<int>();
@@ -183,3 +183,3 @@ void ODateBookAccessBackend_SQL::clear()
-OEvent ODateBookAccessBackend_SQL::find( int uid ) const{
+OPimEvent ODateBookAccessBackend_SQL::find( int uid ) const{
QString qu = "select *";
@@ -194,3 +194,3 @@ OEvent ODateBookAccessBackend_SQL::find( int uid ) const{
QMap<int,QString> dateEventMap;
- dateEventMap.insert( OEvent::FUid, QString::number( uid ) );
+ dateEventMap.insert( OPimEvent::FUid, QString::number( uid ) );
@@ -203,3 +203,3 @@ OEvent ODateBookAccessBackend_SQL::find( int uid ) const{
// Last step: Put map into date event and return it
- OEvent retDate( dateEventMap );
+ OPimEvent retDate( dateEventMap );
@@ -209,3 +209,3 @@ OEvent ODateBookAccessBackend_SQL::find( int uid ) const{
// FIXME: Speed up update of uid's..
-bool ODateBookAccessBackend_SQL::add( const OEvent& ev )
+bool ODateBookAccessBackend_SQL::add( const OPimEvent& ev )
{
@@ -274,3 +274,3 @@ bool ODateBookAccessBackend_SQL::remove( int uid )
-bool ODateBookAccessBackend_SQL::replace( const OEvent& ev )
+bool ODateBookAccessBackend_SQL::replace( const OPimEvent& ev )
{
@@ -311,6 +311,6 @@ QArray<int> ODateBookAccessBackend_SQL::nonRepeats()const
-OEvent::ValueList ODateBookAccessBackend_SQL::directNonRepeats()
+OPimEvent::ValueList ODateBookAccessBackend_SQL::directNonRepeats()
{
QArray<int> nonRepUids = nonRepeats();
- OEvent::ValueList list;
+ OPimEvent::ValueList list;
@@ -323,6 +323,6 @@ OEvent::ValueList ODateBookAccessBackend_SQL::directNonRepeats()
}
-OEvent::ValueList ODateBookAccessBackend_SQL::directRawRepeats()
+OPimEvent::ValueList ODateBookAccessBackend_SQL::directRawRepeats()
{
QArray<int> rawRepUids = rawRepeats();
- OEvent::ValueList list;
+ OPimEvent::ValueList list;
diff --git a/libopie2/opiepim/backend/odatebookaccessbackend_sql.h b/libopie2/opiepim/backend/odatebookaccessbackend_sql.h
index 89939ef..cbfeb97 100644
--- a/libopie2/opiepim/backend/odatebookaccessbackend_sql.h
+++ b/libopie2/opiepim/backend/odatebookaccessbackend_sql.h
@@ -57,8 +57,8 @@ public:
QArray<int> matchRegexp(const QRegExp &r) const;
- QArray<int> queryByExample( const OEvent&, int, const QDateTime& d = QDateTime() );
- OEvent find( int uid )const;
+ QArray<int> queryByExample( const OPimEvent&, int, const QDateTime& d = QDateTime() );
+ OPimEvent find( int uid )const;
void clear();
- bool add( const OEvent& ev );
+ bool add( const OPimEvent& ev );
bool remove( int uid );
- bool replace( const OEvent& ev );
+ bool replace( const OPimEvent& ev );
@@ -68,4 +68,4 @@ public:
- OEvent::ValueList directNonRepeats();
- OEvent::ValueList directRawRepeats();
+ OPimEvent::ValueList directNonRepeats();
+ OPimEvent::ValueList directRawRepeats();
diff --git a/libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp b/libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp
index 0ebda98..77c0253 100644
--- a/libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp
+++ b/libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp
@@ -48,4 +48,4 @@
#include <opie2/opimnotifymanager.h>
-#include <opie2/orecur.h>
-#include <opie2/otimezone.h>
+#include <opie2/opimrecurrence.h>
+#include <opie2/opimtimezone.h>
#include <opie2/odatebookaccessbackend_xml.h>
@@ -83,6 +83,6 @@ namespace {
time_t start, end, created, rp_end;
- ORecur* rec;
- ORecur* recur() {
+ OPimRecurrence* rec;
+ OPimRecurrence* recur() {
if (!rec)
- rec = new ORecur;
+ rec = new OPimRecurrence;
@@ -116,4 +116,4 @@ namespace {
- // FIXME: Use OEvent::toMap() here !! (eilers)
- inline void save( const OEvent& ev, QString& buf ) {
+ // FIXME: Use OPimEvent::toMap() here !! (eilers)
+ inline void save( const OPimEvent& ev, QString& buf ) {
qWarning("Saving %d %s", ev.uid(), ev.description().latin1() );
@@ -148,5 +148,5 @@ namespace {
*/
- OTimeZone zone( ev.timeZone().isEmpty() ? OTimeZone::current() : ev.timeZone() );
- buf += " start=\"" + QString::number( zone.fromUTCDateTime( zone.toDateTime( ev.startDateTime(), OTimeZone::utc() ) ) ) + "\"";
- buf += " end=\"" + QString::number( zone.fromUTCDateTime( zone.toDateTime( ev.endDateTime() , OTimeZone::utc() ) ) ) + "\"";
+ OPimTimeZone zone( ev.timeZone().isEmpty() ? OPimTimeZone::current() : ev.timeZone() );
+ buf += " start=\"" + QString::number( zone.fromUTCDateTime( zone.toDateTime( ev.startDateTime(), OPimTimeZone::utc() ) ) ) + "\"";
+ buf += " end=\"" + QString::number( zone.fromUTCDateTime( zone.toDateTime( ev.endDateTime() , OPimTimeZone::utc() ) ) ) + "\"";
if (!ev.note().isEmpty() ) {
@@ -179,4 +179,4 @@ namespace {
- inline bool forAll( const QMap<int, OEvent>& list, QFile& file ) {
- QMap<int, OEvent>::ConstIterator it;
+ inline bool forAll( const QMap<int, OPimEvent>& list, QFile& file ) {
+ QMap<int, OPimEvent>::ConstIterator it;
QString buf;
@@ -266,3 +266,3 @@ QArray<int> ODateBookAccessBackend_XML::allRecords()const {
uint i = 0;
- QMap<int, OEvent>::ConstIterator it;
+ QMap<int, OPimEvent>::ConstIterator it;
@@ -279,3 +279,3 @@ QArray<int> ODateBookAccessBackend_XML::allRecords()const {
}
-QArray<int> ODateBookAccessBackend_XML::queryByExample(const OEvent&, int, const QDateTime& ) {
+QArray<int> ODateBookAccessBackend_XML::queryByExample(const OPimEvent&, int, const QDateTime& ) {
return QArray<int>();
@@ -287,3 +287,3 @@ void ODateBookAccessBackend_XML::clear() {
}
-OEvent ODateBookAccessBackend_XML::find( int uid ) const{
+OPimEvent ODateBookAccessBackend_XML::find( int uid ) const{
if ( m_raw.contains( uid ) )
@@ -293,3 +293,3 @@ OEvent ODateBookAccessBackend_XML::find( int uid ) const{
}
-bool ODateBookAccessBackend_XML::add( const OEvent& ev ) {
+bool ODateBookAccessBackend_XML::add( const OPimEvent& ev ) {
m_changed = true;
@@ -309,3 +309,3 @@ bool ODateBookAccessBackend_XML::remove( int uid ) {
}
-bool ODateBookAccessBackend_XML::replace( const OEvent& ev ) {
+bool ODateBookAccessBackend_XML::replace( const OPimEvent& ev ) {
replace( ev.uid() ); // ??? Shouldn't this be "remove( ev.uid() ) ??? (eilers)
@@ -319,3 +319,3 @@ QArray<int> ODateBookAccessBackend_XML::rawRepeats()const {
uint i = 0;
- QMap<int, OEvent>::ConstIterator it;
+ QMap<int, OPimEvent>::ConstIterator it;
@@ -331,3 +331,3 @@ QArray<int> ODateBookAccessBackend_XML::nonRepeats()const {
uint i = 0;
- QMap<int, OEvent>::ConstIterator it;
+ QMap<int, OPimEvent>::ConstIterator it;
@@ -340,5 +340,5 @@ QArray<int> ODateBookAccessBackend_XML::nonRepeats()const {
}
-OEvent::ValueList ODateBookAccessBackend_XML::directNonRepeats() {
- OEvent::ValueList list;
- QMap<int, OEvent>::ConstIterator it;
+OPimEvent::ValueList ODateBookAccessBackend_XML::directNonRepeats() {
+ OPimEvent::ValueList list;
+ QMap<int, OPimEvent>::ConstIterator it;
for (it = m_raw.begin(); it != m_raw.end(); ++it )
@@ -348,5 +348,5 @@ OEvent::ValueList ODateBookAccessBackend_XML::directNonRepeats() {
}
-OEvent::ValueList ODateBookAccessBackend_XML::directRawRepeats() {
- OEvent::ValueList list;
- QMap<int, OEvent>::ConstIterator it;
+OPimEvent::ValueList ODateBookAccessBackend_XML::directRawRepeats() {
+ OPimEvent::ValueList list;
+ QMap<int, OPimEvent>::ConstIterator it;
for (it = m_rep.begin(); it != m_rep.end(); ++it )
@@ -357,3 +357,3 @@ OEvent::ValueList ODateBookAccessBackend_XML::directRawRepeats() {
-// FIXME: Use OEvent::fromMap() (eilers)
+// FIXME: Use OPimEvent::fromMap() (eilers)
bool ODateBookAccessBackend_XML::loadFile() {
@@ -416,3 +416,3 @@ bool ODateBookAccessBackend_XML::loadFile() {
- OEvent ev;
+ OPimEvent ev;
rec = 0;
@@ -482,7 +482,7 @@ bool ODateBookAccessBackend_XML::loadFile() {
-// FIXME: Use OEvent::fromMap() which makes this obsolete.. (eilers)
-void ODateBookAccessBackend_XML::finalizeRecord( OEvent& ev ) {
+// FIXME: Use OPimEvent::fromMap() which makes this obsolete.. (eilers)
+void ODateBookAccessBackend_XML::finalizeRecord( OPimEvent& ev ) {
/* AllDay is alway in UTC */
if ( ev.isAllDay() ) {
- OTimeZone utc = OTimeZone::utc();
+ OPimTimeZone utc = OPimTimeZone::utc();
ev.setStartDateTime( utc.fromUTCDateTime( start ) );
@@ -493,13 +493,13 @@ void ODateBookAccessBackend_XML::finalizeRecord( OEvent& ev ) {
// qWarning(" Start is %d", start );
- OTimeZone zone( ev.timeZone().isEmpty() ? OTimeZone::current() : ev.timeZone() );
+ OPimTimeZone zone( ev.timeZone().isEmpty() ? OPimTimeZone::current() : ev.timeZone() );
QDateTime date = zone.toDateTime( start );
qWarning(" Start is %s", date.toString().latin1() );
- ev.setStartDateTime( zone.toDateTime( date, OTimeZone::current() ) );
+ ev.setStartDateTime( zone.toDateTime( date, OPimTimeZone::current() ) );
date = zone.toDateTime( end );
- ev.setEndDateTime ( zone.toDateTime( date, OTimeZone::current() ) );
+ ev.setEndDateTime ( zone.toDateTime( date, OPimTimeZone::current() ) );
}
if ( rec && rec->doesRecur() ) {
- OTimeZone utc = OTimeZone::utc();
- ORecur recu( *rec ); // call copy c'tor;
+ OPimTimeZone utc = OPimTimeZone::utc();
+ OPimRecurrence recu( *rec ); // call copy c'tor;
recu.setEndDate ( utc.fromUTCDateTime( rp_end ).date() );
@@ -526,3 +526,3 @@ void ODateBookAccessBackend_XML::finalizeRecord( OEvent& ev ) {
}
-void ODateBookAccessBackend_XML::setField( OEvent& e, int id, const QString& value) {
+void ODateBookAccessBackend_XML::setField( OPimEvent& e, int id, const QString& value) {
// qWarning(" setting %s", value.latin1() );
@@ -556,13 +556,13 @@ void ODateBookAccessBackend_XML::setField( OEvent& e, int id, const QString& val
if ( value == "Daily" )
- recur()->setType( ORecur::Daily );
+ recur()->setType( OPimRecurrence::Daily );
else if ( value == "Weekly" )
- recur()->setType( ORecur::Weekly);
+ recur()->setType( OPimRecurrence::Weekly);
else if ( value == "MonthlyDay" )
- recur()->setType( ORecur::MonthlyDay );
+ recur()->setType( OPimRecurrence::MonthlyDay );
else if ( value == "MonthlyDate" )
- recur()->setType( ORecur::MonthlyDate );
+ recur()->setType( OPimRecurrence::MonthlyDate );
else if ( value == "Yearly" )
- recur()->setType( ORecur::Yearly );
+ recur()->setType( OPimRecurrence::Yearly );
else
- recur()->setType( ORecur::NoRepeat );
+ recur()->setType( OPimRecurrence::NoRepeat );
break;
@@ -629,3 +629,3 @@ QArray<int> ODateBookAccessBackend_XML::matchRegexp( const QRegExp &r ) const
uint arraycounter = 0;
- QMap<int, OEvent>::ConstIterator it;
+ QMap<int, OPimEvent>::ConstIterator it;
diff --git a/libopie2/opiepim/backend/odatebookaccessbackend_xml.h b/libopie2/opiepim/backend/odatebookaccessbackend_xml.h
index 29f5f4f..6823ce6 100644
--- a/libopie2/opiepim/backend/odatebookaccessbackend_xml.h
+++ b/libopie2/opiepim/backend/odatebookaccessbackend_xml.h
@@ -54,8 +54,8 @@ public:
QArray<int> matchRegexp(const QRegExp &r) const;
- QArray<int> queryByExample( const OEvent&, int, const QDateTime& d = QDateTime() );
- OEvent find( int uid )const;
+ QArray<int> queryByExample( const OPimEvent&, int, const QDateTime& d = QDateTime() );
+ OPimEvent find( int uid )const;
void clear();
- bool add( const OEvent& ev );
+ bool add( const OPimEvent& ev );
bool remove( int uid );
- bool replace( const OEvent& ev );
+ bool replace( const OPimEvent& ev );
@@ -65,4 +65,4 @@ public:
- OEvent::ValueList directNonRepeats();
- OEvent::ValueList directRawRepeats();
+ OPimEvent::ValueList directNonRepeats();
+ OPimEvent::ValueList directRawRepeats();
@@ -71,7 +71,7 @@ private:
bool loadFile();
- inline void finalizeRecord( OEvent& ev );
- inline void setField( OEvent&, int field, const QString& val );
+ inline void finalizeRecord( OPimEvent& ev );
+ inline void setField( OPimEvent&, int field, const QString& val );
QString m_name;
- QMap<int, OEvent> m_raw;
- QMap<int, OEvent> m_rep;
+ QMap<int, OPimEvent> m_raw;
+ QMap<int, OPimEvent> m_rep;
diff --git a/libopie2/opiepim/backend/opimaccessbackend.h b/libopie2/opiepim/backend/opimaccessbackend.h
index 505358e..0682063 100644
--- a/libopie2/opiepim/backend/opimaccessbackend.h
+++ b/libopie2/opiepim/backend/opimaccessbackend.h
@@ -34,3 +34,3 @@
-#include <opie2/otemplatebase.h>
+#include <opie2/opimtemplatebase.h>
#include <opie2/opimrecord.h>
diff --git a/libopie2/opiepim/backend/otodoaccessbackend.cpp b/libopie2/opiepim/backend/otodoaccessbackend.cpp
index d27f5ef..790a764 100644
--- a/libopie2/opiepim/backend/otodoaccessbackend.cpp
+++ b/libopie2/opiepim/backend/otodoaccessbackend.cpp
@@ -32,7 +32,7 @@
namespace Opie {
-OTodoAccessBackend::OTodoAccessBackend()
- : OPimAccessBackend<OTodo>()
+OPimTodoAccessBackend::OPimTodoAccessBackend()
+ : OPimAccessBackend<OPimTodo>()
{
}
-OTodoAccessBackend::~OTodoAccessBackend() {
+OPimTodoAccessBackend::~OPimTodoAccessBackend() {
diff --git a/libopie2/opiepim/backend/otodoaccessbackend.h b/libopie2/opiepim/backend/otodoaccessbackend.h
index 54b52cc..9dfda45 100644
--- a/libopie2/opiepim/backend/otodoaccessbackend.h
+++ b/libopie2/opiepim/backend/otodoaccessbackend.h
@@ -33,3 +33,3 @@
-#include <opie2/otodo.h>
+#include <opie2/opimtodo.h>
#include <opie2/opimaccessbackend.h>
@@ -37,6 +37,6 @@
namespace Opie {
-class OTodoAccessBackend : public OPimAccessBackend<OTodo> {
+class OPimTodoAccessBackend : public OPimAccessBackend<OPimTodo> {
public:
- OTodoAccessBackend();
- ~OTodoAccessBackend();
+ OPimTodoAccessBackend();
+ ~OPimTodoAccessBackend();
virtual QArray<int> effectiveToDos( const QDate& start,
diff --git a/libopie2/opiepim/backend/otodoaccesssql.cpp b/libopie2/opiepim/backend/otodoaccesssql.cpp
index 944f82a..72232e5 100644
--- a/libopie2/opiepim/backend/otodoaccesssql.cpp
+++ b/libopie2/opiepim/backend/otodoaccesssql.cpp
@@ -41,3 +41,3 @@
#include <opie2/opimnotifymanager.h>
-#include <opie2/orecur.h>
+#include <opie2/opimrecurrence.h>
@@ -75,3 +75,3 @@ namespace {
/**
- * inserts/adds a OTodo to the table
+ * inserts/adds a OPimTodo to the table
*/
@@ -79,3 +79,3 @@ namespace {
public:
- InsertQuery(const OTodo& );
+ InsertQuery(const OPimTodo& );
~InsertQuery();
@@ -83,3 +83,3 @@ namespace {
private:
- OTodo m_todo;
+ OPimTodo m_todo;
};
@@ -154,3 +154,3 @@ namespace {
qu += "description, summary, priority, DueDate, progress , state, ";
- // This is the recurrance-stuff .. Exceptions are currently not supported (see ORecur.cpp) ! (eilers)
+ // This is the recurrance-stuff .. Exceptions are currently not supported (see OPimRecurrence.cpp) ! (eilers)
qu += "RType, RWeekdays, RPosition, RFreq, RHasEndDate, EndDate, Created, Exceptions, ";
@@ -172,3 +172,3 @@ namespace {
- InsertQuery::InsertQuery( const OTodo& todo )
+ InsertQuery::InsertQuery( const OPimTodo& todo )
: OSQLQuery(), m_todo( todo ) {
@@ -178,3 +178,3 @@ namespace {
/*
- * converts from a OTodo to a query
+ * converts from a OPimTodo to a query
* we leave out X-Ref + Alarms
@@ -220,10 +220,10 @@ namespace {
+ QString::number( m_todo.state().state() ) + ","
- + "'" + recMap[ ORecur::RType ] + "'" + ","
- + "'" + recMap[ ORecur::RWeekdays ] + "'" + ","
- + "'" + recMap[ ORecur::RPosition ] + "'" + ","
- + "'" + recMap[ ORecur::RFreq ] + "'" + ","
- + "'" + recMap[ ORecur::RHasEndDate ] + "'" + ","
- + "'" + recMap[ ORecur::EndDate ] + "'" + ","
- + "'" + recMap[ ORecur::Created ] + "'" + ","
- + "'" + recMap[ ORecur::Exceptions ] + "'" + ",";
+ + "'" + recMap[ OPimRecurrence::RType ] + "'" + ","
+ + "'" + recMap[ OPimRecurrence::RWeekdays ] + "'" + ","
+ + "'" + recMap[ OPimRecurrence::RPosition ] + "'" + ","
+ + "'" + recMap[ OPimRecurrence::RFreq ] + "'" + ","
+ + "'" + recMap[ OPimRecurrence::RHasEndDate ] + "'" + ","
+ + "'" + recMap[ OPimRecurrence::EndDate ] + "'" + ","
+ + "'" + recMap[ OPimRecurrence::Created ] + "'" + ","
+ + "'" + recMap[ OPimRecurrence::Exceptions ] + "'" + ",";
@@ -331,4 +331,4 @@ namespace {
namespace Opie {
-OTodoAccessBackendSQL::OTodoAccessBackendSQL( const QString& file )
- : OTodoAccessBackend(), m_dict(15), m_driver(NULL), m_dirty(true)
+OPimTodoAccessBackendSQL::OPimTodoAccessBackendSQL( const QString& file )
+ : OPimTodoAccessBackend(), m_dict(15), m_driver(NULL), m_dirty(true)
{
@@ -343,3 +343,3 @@ OTodoAccessBackendSQL::OTodoAccessBackendSQL( const QString& file )
-OTodoAccessBackendSQL::~OTodoAccessBackendSQL(){
+OPimTodoAccessBackendSQL::~OPimTodoAccessBackendSQL(){
if( m_driver )
@@ -348,3 +348,3 @@ OTodoAccessBackendSQL::~OTodoAccessBackendSQL(){
-bool OTodoAccessBackendSQL::load(){
+bool OPimTodoAccessBackendSQL::load(){
if (!m_driver->open() )
@@ -358,3 +358,3 @@ bool OTodoAccessBackendSQL::load(){
}
-bool OTodoAccessBackendSQL::reload(){
+bool OPimTodoAccessBackendSQL::reload(){
return load();
@@ -362,6 +362,6 @@ bool OTodoAccessBackendSQL::reload(){
-bool OTodoAccessBackendSQL::save(){
+bool OPimTodoAccessBackendSQL::save(){
return m_driver->close(); // Shouldn't m_driver->sync be better than close ? (eilers)
}
-QArray<int> OTodoAccessBackendSQL::allRecords()const {
+QArray<int> OPimTodoAccessBackendSQL::allRecords()const {
if (m_dirty )
@@ -371,3 +371,3 @@ QArray<int> OTodoAccessBackendSQL::allRecords()const {
}
-QArray<int> OTodoAccessBackendSQL::queryByExample( const OTodo& , int, const QDateTime& ){
+QArray<int> OPimTodoAccessBackendSQL::queryByExample( const OPimTodo& , int, const QDateTime& ){
QArray<int> ints(0);
@@ -375,3 +375,3 @@ QArray<int> OTodoAccessBackendSQL::queryByExample( const OTodo& , int, const QDa
}
-OTodo OTodoAccessBackendSQL::find(int uid ) const{
+OPimTodo OPimTodoAccessBackendSQL::find(int uid ) const{
FindQuery query( uid );
@@ -380,3 +380,3 @@ OTodo OTodoAccessBackendSQL::find(int uid ) const{
}
-OTodo OTodoAccessBackendSQL::find( int uid, const QArray<int>& ints,
+OPimTodo OPimTodoAccessBackendSQL::find( int uid, const QArray<int>& ints,
uint cur, Frontend::CacheDirection dir ) const{
@@ -386,3 +386,3 @@ OTodo OTodoAccessBackendSQL::find( int uid, const QArray<int>& ints,
uint size =0;
- OTodo to;
+ OPimTodo to;
@@ -414,3 +414,3 @@ OTodo OTodoAccessBackendSQL::find( int uid, const QArray<int>& ints,
}
-void OTodoAccessBackendSQL::clear() {
+void OPimTodoAccessBackendSQL::clear() {
ClearQuery cle;
@@ -420,3 +420,3 @@ void OTodoAccessBackendSQL::clear() {
}
-bool OTodoAccessBackendSQL::add( const OTodo& t) {
+bool OPimTodoAccessBackendSQL::add( const OPimTodo& t) {
InsertQuery ins( t );
@@ -432,3 +432,3 @@ bool OTodoAccessBackendSQL::add( const OTodo& t) {
}
-bool OTodoAccessBackendSQL::remove( int uid ) {
+bool OPimTodoAccessBackendSQL::remove( int uid ) {
RemoveQuery rem( uid );
@@ -447,3 +447,3 @@ bool OTodoAccessBackendSQL::remove( int uid ) {
*/
-bool OTodoAccessBackendSQL::replace( const OTodo& t) {
+bool OPimTodoAccessBackendSQL::replace( const OPimTodo& t) {
remove( t.uid() );
@@ -453,3 +453,3 @@ bool OTodoAccessBackendSQL::replace( const OTodo& t) {
}
-QArray<int> OTodoAccessBackendSQL::overDue() {
+QArray<int> OPimTodoAccessBackendSQL::overDue() {
OverDueQuery qu;
@@ -457,3 +457,3 @@ QArray<int> OTodoAccessBackendSQL::overDue() {
}
-QArray<int> OTodoAccessBackendSQL::effectiveToDos( const QDate& s,
+QArray<int> OPimTodoAccessBackendSQL::effectiveToDos( const QDate& s,
const QDate& t,
@@ -466,3 +466,3 @@ QArray<int> OTodoAccessBackendSQL::effectiveToDos( const QDate& s,
*/
-QArray<int> OTodoAccessBackendSQL::sorted( bool asc, int sortOrder,
+QArray<int> OPimTodoAccessBackendSQL::sorted( bool asc, int sortOrder,
int sortFilter, int cat ) {
@@ -532,3 +532,3 @@ QArray<int> OTodoAccessBackendSQL::sorted( bool asc, int sortOrder,
}
-bool OTodoAccessBackendSQL::date( QDate& da, const QString& str ) const{
+bool OPimTodoAccessBackendSQL::date( QDate& da, const QString& str ) const{
if ( str == "0-0-0" )
@@ -545,5 +545,5 @@ bool OTodoAccessBackendSQL::date( QDate& da, const QString& str ) const{
}
-OTodo OTodoAccessBackendSQL::todo( const OSQLResult& res) const{
+OPimTodo OPimTodoAccessBackendSQL::todo( const OSQLResult& res) const{
if ( res.state() == OSQLResult::Failure ) {
- OTodo to;
+ OPimTodo to;
return to;
@@ -554,3 +554,3 @@ OTodo OTodoAccessBackendSQL::todo( const OSQLResult& res) const{
qWarning("todo1");
- OTodo to = todo( (*it) );
+ OPimTodo to = todo( (*it) );
cache( to );
@@ -564,3 +564,3 @@ OTodo OTodoAccessBackendSQL::todo( const OSQLResult& res) const{
}
-OTodo OTodoAccessBackendSQL::todo( OSQLResultItem& item )const {
+OPimTodo OPimTodoAccessBackendSQL::todo( OSQLResultItem& item )const {
qWarning("todo");
@@ -572,3 +572,3 @@ OTodo OTodoAccessBackendSQL::todo( OSQLResultItem& item )const {
- OTodo to( (bool)item.data("completed").toInt(), item.data("priority").toInt(),
+ OPimTodo to( (bool)item.data("completed").toInt(), item.data("priority").toInt(),
cats, item.data("summary"), item.data("description"),
@@ -601,12 +601,12 @@ OTodo OTodoAccessBackendSQL::todo( OSQLResultItem& item )const {
QMap<int, QString> recMap;
- recMap.insert( ORecur::RType , item.data("RType") );
- recMap.insert( ORecur::RWeekdays , item.data("RWeekdays") );
- recMap.insert( ORecur::RPosition , item.data("RPosition") );
- recMap.insert( ORecur::RFreq , item.data("RFreq") );
- recMap.insert( ORecur::RHasEndDate, item.data("RHasEndDate") );
- recMap.insert( ORecur::EndDate , item.data("EndDate") );
- recMap.insert( ORecur::Created , item.data("Created") );
- recMap.insert( ORecur::Exceptions , item.data("Exceptions") );
-
- ORecur recur;
+ recMap.insert( OPimRecurrence::RType , item.data("RType") );
+ recMap.insert( OPimRecurrence::RWeekdays , item.data("RWeekdays") );
+ recMap.insert( OPimRecurrence::RPosition , item.data("RPosition") );
+ recMap.insert( OPimRecurrence::RFreq , item.data("RFreq") );
+ recMap.insert( OPimRecurrence::RHasEndDate, item.data("RHasEndDate") );
+ recMap.insert( OPimRecurrence::EndDate , item.data("EndDate") );
+ recMap.insert( OPimRecurrence::Created , item.data("Created") );
+ recMap.insert( OPimRecurrence::Exceptions , item.data("Exceptions") );
+
+ OPimRecurrence recur;
recur.fromMap( recMap );
@@ -616,3 +616,3 @@ OTodo OTodoAccessBackendSQL::todo( OSQLResultItem& item )const {
}
-OTodo OTodoAccessBackendSQL::todo( int uid )const {
+OPimTodo OPimTodoAccessBackendSQL::todo( int uid )const {
FindQuery find( uid );
@@ -623,3 +623,3 @@ OTodo OTodoAccessBackendSQL::todo( int uid )const {
*/
-void OTodoAccessBackendSQL::fillDict() {
+void OPimTodoAccessBackendSQL::fillDict() {
/* initialize dict */
@@ -630,17 +630,17 @@ void OTodoAccessBackendSQL::fillDict() {
m_dict.setAutoDelete( TRUE );
- m_dict.insert("Categories" , new int(OTodo::Category) );
- m_dict.insert("Uid" , new int(OTodo::Uid) );
- m_dict.insert("HasDate" , new int(OTodo::HasDate) );
- m_dict.insert("Completed" , new int(OTodo::Completed) );
- m_dict.insert("Description" , new int(OTodo::Description) );
- m_dict.insert("Summary" , new int(OTodo::Summary) );
- m_dict.insert("Priority" , new int(OTodo::Priority) );
- m_dict.insert("DateDay" , new int(OTodo::DateDay) );
- m_dict.insert("DateMonth" , new int(OTodo::DateMonth) );
- m_dict.insert("DateYear" , new int(OTodo::DateYear) );
- m_dict.insert("Progress" , new int(OTodo::Progress) );
- m_dict.insert("Completed", new int(OTodo::Completed) ); // Why twice ? (eilers)
- m_dict.insert("CrossReference", new int(OTodo::CrossReference) );
-// m_dict.insert("HasAlarmDateTime",new int(OTodo::HasAlarmDateTime) ); // old stuff (eilers)
-// m_dict.insert("AlarmDateTime", new int(OTodo::AlarmDateTime) ); // old stuff (eilers)
+ m_dict.insert("Categories" , new int(OPimTodo::Category) );
+ m_dict.insert("Uid" , new int(OPimTodo::Uid) );
+ m_dict.insert("HasDate" , new int(OPimTodo::HasDate) );
+ m_dict.insert("Completed" , new int(OPimTodo::Completed) );
+ m_dict.insert("Description" , new int(OPimTodo::Description) );
+ m_dict.insert("Summary" , new int(OPimTodo::Summary) );
+ m_dict.insert("Priority" , new int(OPimTodo::Priority) );
+ m_dict.insert("DateDay" , new int(OPimTodo::DateDay) );
+ m_dict.insert("DateMonth" , new int(OPimTodo::DateMonth) );
+ m_dict.insert("DateYear" , new int(OPimTodo::DateYear) );
+ m_dict.insert("Progress" , new int(OPimTodo::Progress) );
+ m_dict.insert("Completed", new int(OPimTodo::Completed) ); // Why twice ? (eilers)
+ m_dict.insert("CrossReference", new int(OPimTodo::CrossReference) );
+// m_dict.insert("HasAlarmDateTime",new int(OPimTodo::HasAlarmDateTime) ); // old stuff (eilers)
+// m_dict.insert("AlarmDateTime", new int(OPimTodo::AlarmDateTime) ); // old stuff (eilers)
}
@@ -650,4 +650,4 @@ void OTodoAccessBackendSQL::fillDict() {
*/
-void OTodoAccessBackendSQL::update()const {
- ((OTodoAccessBackendSQL*)this)->m_dirty = false;
+void OPimTodoAccessBackendSQL::update()const {
+ ((OPimTodoAccessBackendSQL*)this)->m_dirty = false;
LoadQuery lo;
@@ -657,5 +657,5 @@ void OTodoAccessBackendSQL::update()const {
- ((OTodoAccessBackendSQL*)this)->m_uids = uids( res );
+ ((OPimTodoAccessBackendSQL*)this)->m_uids = uids( res );
}
-QArray<int> OTodoAccessBackendSQL::uids( const OSQLResult& res) const{
+QArray<int> OPimTodoAccessBackendSQL::uids( const OSQLResult& res) const{
@@ -674,6 +674,6 @@ QArray<int> OTodoAccessBackendSQL::uids( const OSQLResult& res) const{
-QArray<int> OTodoAccessBackendSQL::matchRegexp( const QRegExp &r ) const
+QArray<int> OPimTodoAccessBackendSQL::matchRegexp( const QRegExp &r ) const
{
-#warning OTodoAccessBackendSQL::matchRegexp() not implemented !!
+#warning OPimTodoAccessBackendSQL::matchRegexp() not implemented !!
@@ -688,3 +688,3 @@ QArray<int> OTodoAccessBackendSQL::matchRegexp( const QRegExp &r ) const
- QMap<int, OTodo>::ConstIterator it;
+ QMap<int, OPimTodo>::ConstIterator it;
for (it = m_events.begin(); it != m_events.end(); ++it ) {
@@ -702,3 +702,3 @@ QArray<int> OTodoAccessBackendSQL::matchRegexp( const QRegExp &r ) const
}
-QBitArray OTodoAccessBackendSQL::supports()const {
+QBitArray OPimTodoAccessBackendSQL::supports()const {
@@ -707,11 +707,11 @@ QBitArray OTodoAccessBackendSQL::supports()const {
-QBitArray OTodoAccessBackendSQL::sup() const{
+QBitArray OPimTodoAccessBackendSQL::sup() const{
- QBitArray ar( OTodo::CompletedDate + 1 );
+ QBitArray ar( OPimTodo::CompletedDate + 1 );
ar.fill( true );
- ar[OTodo::CrossReference] = false;
- ar[OTodo::State ] = false;
- ar[OTodo::Reminders] = false;
- ar[OTodo::Notifiers] = false;
- ar[OTodo::Maintainer] = false;
+ ar[OPimTodo::CrossReference] = false;
+ ar[OPimTodo::State ] = false;
+ ar[OPimTodo::Reminders] = false;
+ ar[OPimTodo::Notifiers] = false;
+ ar[OPimTodo::Maintainer] = false;
@@ -720,4 +720,4 @@ QBitArray OTodoAccessBackendSQL::sup() const{
-void OTodoAccessBackendSQL::removeAllCompleted(){
-#warning OTodoAccessBackendSQL::removeAllCompleted() not implemented !!
+void OPimTodoAccessBackendSQL::removeAllCompleted(){
+#warning OPimTodoAccessBackendSQL::removeAllCompleted() not implemented !!
diff --git a/libopie2/opiepim/backend/otodoaccesssql.h b/libopie2/opiepim/backend/otodoaccesssql.h
index 1a6f614..e945863 100644
--- a/libopie2/opiepim/backend/otodoaccesssql.h
+++ b/libopie2/opiepim/backend/otodoaccesssql.h
@@ -41,6 +41,6 @@ namespace Opie {
-class OTodoAccessBackendSQL : public OTodoAccessBackend {
+class OPimTodoAccessBackendSQL : public OPimTodoAccessBackend {
public:
- OTodoAccessBackendSQL( const QString& file );
- ~OTodoAccessBackendSQL();
+ OPimTodoAccessBackendSQL( const QString& file );
+ ~OPimTodoAccessBackendSQL();
@@ -51,9 +51,9 @@ public:
- QArray<int> queryByExample( const OTodo& t, int settings, const QDateTime& d = QDateTime() );
- OTodo find(int uid)const;
- OTodo find(int uid, const QArray<int>&, uint cur, Frontend::CacheDirection )const;
+ QArray<int> queryByExample( const OPimTodo& t, int settings, const QDateTime& d = QDateTime() );
+ OPimTodo find(int uid)const;
+ OPimTodo find(int uid, const QArray<int>&, uint cur, Frontend::CacheDirection )const;
void clear();
- bool add( const OTodo& t );
+ bool add( const OPimTodo& t );
bool remove( int uid );
- bool replace( const OTodo& t );
+ bool replace( const OPimTodo& t );
@@ -73,6 +73,6 @@ private:
inline bool date( QDate& date, const QString& )const;
- inline OTodo todo( const OSQLResult& )const;
- inline OTodo todo( OSQLResultItem& )const;
+ inline OPimTodo todo( const OSQLResult& )const;
+ inline OPimTodo todo( OSQLResultItem& )const;
inline QArray<int> uids( const OSQLResult& )const;
- OTodo todo( int uid )const;
+ OPimTodo todo( int uid )const;
QBitArray sup() const;
diff --git a/libopie2/opiepim/backend/otodoaccessvcal.cpp b/libopie2/opiepim/backend/otodoaccessvcal.cpp
index e364ee2..0a1baf9 100644
--- a/libopie2/opiepim/backend/otodoaccessvcal.cpp
+++ b/libopie2/opiepim/backend/otodoaccessvcal.cpp
@@ -39,4 +39,4 @@ using namespace Opie;
namespace {
- static OTodo eventByVObj( VObject *obj ){
- OTodo event;
+ static OPimTodo eventByVObj( VObject *obj ){
+ OPimTodo event;
VObject *ob;
@@ -93,3 +93,3 @@ namespace {
};
- static VObject *vobjByEvent( const OTodo &event ) {
+ static VObject *vobjByEvent( const OPimTodo &event ) {
VObject *task = newVObject( VCTodoProp );
@@ -140,3 +140,3 @@ namespace {
namespace Opie {
-OTodoAccessVCal::OTodoAccessVCal( const QString& path )
+OPimTodoAccessVCal::OPimTodoAccessVCal( const QString& path )
: m_dirty(false), m_file( path )
@@ -144,5 +144,5 @@ OTodoAccessVCal::OTodoAccessVCal( const QString& path )
}
-OTodoAccessVCal::~OTodoAccessVCal() {
+OPimTodoAccessVCal::~OPimTodoAccessVCal() {
}
-bool OTodoAccessVCal::load() {
+bool OPimTodoAccessVCal::load() {
m_map.clear();
@@ -165,3 +165,3 @@ bool OTodoAccessVCal::load() {
if( name == VCTodoProp ){
- OTodo to = eventByVObj( vobj );
+ OPimTodo to = eventByVObj( vobj );
m_map.insert( to.uid(), to );
@@ -174,6 +174,6 @@ bool OTodoAccessVCal::load() {
}
-bool OTodoAccessVCal::reload() {
+bool OPimTodoAccessVCal::reload() {
return load();
}
-bool OTodoAccessVCal::save() {
+bool OPimTodoAccessVCal::save() {
if (!m_dirty )
@@ -189,3 +189,3 @@ bool OTodoAccessVCal::save() {
VObject *vo;
- for(QMap<int, OTodo>::ConstIterator it=m_map.begin(); it !=m_map.end(); ++it ){
+ for(QMap<int, OPimTodo>::ConstIterator it=m_map.begin(); it !=m_map.end(); ++it ){
vo = vobjByEvent( it.data() );
@@ -200,3 +200,3 @@ bool OTodoAccessVCal::save() {
}
-void OTodoAccessVCal::clear() {
+void OPimTodoAccessVCal::clear() {
m_map.clear();
@@ -204,3 +204,3 @@ void OTodoAccessVCal::clear() {
}
-bool OTodoAccessVCal::add( const OTodo& to ) {
+bool OPimTodoAccessVCal::add( const OPimTodo& to ) {
m_map.insert( to.uid(), to );
@@ -209,3 +209,3 @@ bool OTodoAccessVCal::add( const OTodo& to ) {
}
-bool OTodoAccessVCal::remove( int uid ) {
+bool OPimTodoAccessVCal::remove( int uid ) {
m_map.remove( uid );
@@ -214,4 +214,4 @@ bool OTodoAccessVCal::remove( int uid ) {
}
-void OTodoAccessVCal::removeAllCompleted() {
- for ( QMap<int, OTodo>::Iterator it = m_map.begin(); it != m_map.end(); ++it ) {
+void OPimTodoAccessVCal::removeAllCompleted() {
+ for ( QMap<int, OPimTodo>::Iterator it = m_map.begin(); it != m_map.end(); ++it ) {
if ( (*it).isCompleted() )
@@ -220,3 +220,3 @@ void OTodoAccessVCal::removeAllCompleted() {
}
-bool OTodoAccessVCal::replace( const OTodo& to ) {
+bool OPimTodoAccessVCal::replace( const OPimTodo& to ) {
m_map.replace( to.uid(), to );
@@ -225,6 +225,6 @@ bool OTodoAccessVCal::replace( const OTodo& to ) {
}
-OTodo OTodoAccessVCal::find(int uid )const {
+OPimTodo OPimTodoAccessVCal::find(int uid )const {
return m_map[uid];
}
-QArray<int> OTodoAccessVCal::sorted( bool, int, int, int ) {
+QArray<int> OPimTodoAccessVCal::sorted( bool, int, int, int ) {
QArray<int> ar(0);
@@ -232,5 +232,5 @@ QArray<int> OTodoAccessVCal::sorted( bool, int, int, int ) {
}
-QArray<int> OTodoAccessVCal::allRecords()const {
+QArray<int> OPimTodoAccessVCal::allRecords()const {
QArray<int> ar( m_map.count() );
- QMap<int, OTodo>::ConstIterator it;
+ QMap<int, OPimTodo>::ConstIterator it;
int i = 0;
@@ -242,3 +242,3 @@ QArray<int> OTodoAccessVCal::allRecords()const {
}
-QArray<int> OTodoAccessVCal::matchRegexp(const QRegExp& /* r */)const {
+QArray<int> OPimTodoAccessVCal::matchRegexp(const QRegExp& /* r */)const {
QArray<int> ar(0);
@@ -246,3 +246,3 @@ QArray<int> OTodoAccessVCal::matchRegexp(const QRegExp& /* r */)const {
}
-QArray<int> OTodoAccessVCal::queryByExample( const OTodo&, int, const QDateTime& ) {
+QArray<int> OPimTodoAccessVCal::queryByExample( const OPimTodo&, int, const QDateTime& ) {
QArray<int> ar(0);
@@ -250,3 +250,3 @@ QArray<int> OTodoAccessVCal::queryByExample( const OTodo&, int, const QDateTime&
}
-QArray<int> OTodoAccessVCal::effectiveToDos( const QDate& ,
+QArray<int> OPimTodoAccessVCal::effectiveToDos( const QDate& ,
const QDate& ,
@@ -256,3 +256,3 @@ QArray<int> OTodoAccessVCal::effectiveToDos( const QDate& ,
}
-QArray<int> OTodoAccessVCal::overDue() {
+QArray<int> OPimTodoAccessVCal::overDue() {
QArray<int> ar(0);
@@ -260,3 +260,3 @@ QArray<int> OTodoAccessVCal::overDue() {
}
-QBitArray OTodoAccessVCal::supports()const {
+QBitArray OPimTodoAccessVCal::supports()const {
static QBitArray ar = sup();
@@ -265,14 +265,14 @@ QBitArray OTodoAccessVCal::supports()const {
}
-QBitArray OTodoAccessVCal::sup() {
- QBitArray ar ( OTodo::CompletedDate +1 );
+QBitArray OPimTodoAccessVCal::sup() {
+ QBitArray ar ( OPimTodo::CompletedDate +1 );
ar.fill( true );
- ar[OTodo::CrossReference] = false;
- ar[OTodo::State ] = false;
- ar[OTodo::Reminders] = false;
- ar[OTodo::Notifiers] = false;
- ar[OTodo::Maintainer] = false;
- ar[OTodo::Progress] = false;
- ar[OTodo::Alarms ] = false;
- ar[OTodo::Recurrence] = false;
+ ar[OPimTodo::CrossReference] = false;
+ ar[OPimTodo::State ] = false;
+ ar[OPimTodo::Reminders] = false;
+ ar[OPimTodo::Notifiers] = false;
+ ar[OPimTodo::Maintainer] = false;
+ ar[OPimTodo::Progress] = false;
+ ar[OPimTodo::Alarms ] = false;
+ ar[OPimTodo::Recurrence] = false;
diff --git a/libopie2/opiepim/backend/otodoaccessvcal.h b/libopie2/opiepim/backend/otodoaccessvcal.h
index f9323fb..1e106d3 100644
--- a/libopie2/opiepim/backend/otodoaccessvcal.h
+++ b/libopie2/opiepim/backend/otodoaccessvcal.h
@@ -35,6 +35,6 @@ namespace Opie {
-class OTodoAccessVCal : public OTodoAccessBackend {
+class OPimTodoAccessVCal : public OPimTodoAccessBackend {
public:
- OTodoAccessVCal(const QString& );
- ~OTodoAccessVCal();
+ OPimTodoAccessVCal(const QString& );
+ ~OPimTodoAccessVCal();
@@ -46,3 +46,3 @@ public:
QArray<int> matchRegexp(const QRegExp &r) const;
- QArray<int> queryByExample( const OTodo& t, int sort, const QDateTime& d = QDateTime() );
+ QArray<int> queryByExample( const OPimTodo& t, int sort, const QDateTime& d = QDateTime() );
QArray<int> effectiveToDos( const QDate& start,
@@ -53,7 +53,7 @@ public:
int cat );
- OTodo find(int uid)const;
+ OPimTodo find(int uid)const;
void clear();
- bool add( const OTodo& );
+ bool add( const OPimTodo& );
bool remove( int uid );
- bool replace( const OTodo& );
+ bool replace( const OPimTodo& );
@@ -66,3 +66,3 @@ private:
QString m_file;
- QMap<int, OTodo> m_map;
+ QMap<int, OPimTodo> m_map;
};
diff --git a/libopie2/opiepim/backend/otodoaccessxml.cpp b/libopie2/opiepim/backend/otodoaccessxml.cpp
index 2d50ecd..cce6111 100644
--- a/libopie2/opiepim/backend/otodoaccessxml.cpp
+++ b/libopie2/opiepim/backend/otodoaccessxml.cpp
@@ -45,7 +45,7 @@
-#include <opie2/oconversion.h>
+#include <opie2/opimdateconversion.h>
#include <opie2/opimstate.h>
-#include <opie2/otimezone.h>
+#include <opie2/opimtimezone.h>
#include <opie2/opimnotifymanager.h>
-#include <opie2/orecur.h>
+#include <opie2/opimrecurrence.h>
#include <opie2/otodoaccessxml.h>
@@ -56,5 +56,5 @@ namespace {
time_t rp_end;
- ORecur* rec;
- ORecur *recur() {
- if (!rec ) rec = new ORecur;
+ OPimRecurrence* rec;
+ OPimRecurrence *recur() {
+ if (!rec ) rec = new OPimRecurrence;
return rec;
@@ -63,3 +63,3 @@ namespace {
enum MoreAttributes {
- FRType = OTodo::CompletedDate + 2,
+ FRType = OPimTodo::CompletedDate + 2,
FRWeekdays,
@@ -100,5 +100,5 @@ namespace Opie {
-OTodoAccessXML::OTodoAccessXML( const QString& appName,
+OPimTodoAccessXML::OPimTodoAccessXML( const QString& appName,
const QString& fileName )
- : OTodoAccessBackend(), m_app( appName ), m_opened( false ), m_changed( false )
+ : OPimTodoAccessBackend(), m_app( appName ), m_opened( false ), m_changed( false )
{
@@ -109,6 +109,6 @@ OTodoAccessXML::OTodoAccessXML( const QString& appName,
}
-OTodoAccessXML::~OTodoAccessXML() {
+OPimTodoAccessXML::~OPimTodoAccessXML() {
}
-bool OTodoAccessXML::load() {
+bool OPimTodoAccessXML::load() {
rec = 0;
@@ -122,21 +122,21 @@ bool OTodoAccessXML::load() {
dict.setAutoDelete( TRUE );
- dict.insert("Categories" , new int(OTodo::Category) );
- dict.insert("Uid" , new int(OTodo::Uid) );
- dict.insert("HasDate" , new int(OTodo::HasDate) );
- dict.insert("Completed" , new int(OTodo::Completed) );
- dict.insert("Description" , new int(OTodo::Description) );
- dict.insert("Summary" , new int(OTodo::Summary) );
- dict.insert("Priority" , new int(OTodo::Priority) );
- dict.insert("DateDay" , new int(OTodo::DateDay) );
- dict.insert("DateMonth" , new int(OTodo::DateMonth) );
- dict.insert("DateYear" , new int(OTodo::DateYear) );
- dict.insert("Progress" , new int(OTodo::Progress) );
- dict.insert("CompletedDate", new int(OTodo::CompletedDate) );
- dict.insert("StartDate", new int(OTodo::StartDate) );
- dict.insert("CrossReference", new int(OTodo::CrossReference) );
- dict.insert("State", new int(OTodo::State) );
- dict.insert("Alarms", new int(OTodo::Alarms) );
- dict.insert("Reminders", new int(OTodo::Reminders) );
- dict.insert("Notifiers", new int(OTodo::Notifiers) );
- dict.insert("Maintainer", new int(OTodo::Maintainer) );
+ dict.insert("Categories" , new int(OPimTodo::Category) );
+ dict.insert("Uid" , new int(OPimTodo::Uid) );
+ dict.insert("HasDate" , new int(OPimTodo::HasDate) );
+ dict.insert("Completed" , new int(OPimTodo::Completed) );
+ dict.insert("Description" , new int(OPimTodo::Description) );
+ dict.insert("Summary" , new int(OPimTodo::Summary) );
+ dict.insert("Priority" , new int(OPimTodo::Priority) );
+ dict.insert("DateDay" , new int(OPimTodo::DateDay) );
+ dict.insert("DateMonth" , new int(OPimTodo::DateMonth) );
+ dict.insert("DateYear" , new int(OPimTodo::DateYear) );
+ dict.insert("Progress" , new int(OPimTodo::Progress) );
+ dict.insert("CompletedDate", new int(OPimTodo::CompletedDate) );
+ dict.insert("StartDate", new int(OPimTodo::StartDate) );
+ dict.insert("CrossReference", new int(OPimTodo::CrossReference) );
+ dict.insert("State", new int(OPimTodo::State) );
+ dict.insert("Alarms", new int(OPimTodo::Alarms) );
+ dict.insert("Reminders", new int(OPimTodo::Reminders) );
+ dict.insert("Notifiers", new int(OPimTodo::Notifiers) );
+ dict.insert("Maintainer", new int(OPimTodo::Maintainer) );
dict.insert("rtype", new int(FRType) );
@@ -181,3 +181,3 @@ bool OTodoAccessXML::load() {
- OTodo ev;
+ OPimTodo ev;
m_year = m_month = m_day = 0;
@@ -244,4 +244,4 @@ bool OTodoAccessXML::load() {
if ( rec && rec->doesRecur() ) {
- OTimeZone utc = OTimeZone::utc();
- ORecur recu( *rec ); // call copy c'tor
+ OPimTimeZone utc = OPimTimeZone::utc();
+ OPimRecurrence recu( *rec ); // call copy c'tor
recu.setEndDate( utc.fromUTCDateTime( rp_end ).date() );
@@ -261,3 +261,3 @@ bool OTodoAccessXML::load() {
}
-bool OTodoAccessXML::reload() {
+bool OPimTodoAccessXML::reload() {
m_events.clear();
@@ -265,3 +265,3 @@ bool OTodoAccessXML::reload() {
}
-bool OTodoAccessXML::save() {
+bool OPimTodoAccessXML::save() {
// qWarning("saving");
@@ -281,3 +281,3 @@ bool OTodoAccessXML::save() {
// for all todos
- QMap<int, OTodo>::Iterator it;
+ QMap<int, OPimTodo>::Iterator it;
for (it = m_events.begin(); it != m_events.end(); ++it ) {
@@ -316,5 +316,5 @@ bool OTodoAccessXML::save() {
}
-QArray<int> OTodoAccessXML::allRecords()const {
+QArray<int> OPimTodoAccessXML::allRecords()const {
QArray<int> ids( m_events.count() );
- QMap<int, OTodo>::ConstIterator it;
+ QMap<int, OPimTodo>::ConstIterator it;
int i = 0;
@@ -327,3 +327,3 @@ QArray<int> OTodoAccessXML::allRecords()const {
}
-QArray<int> OTodoAccessXML::queryByExample( const OTodo&, int, const QDateTime& ) {
+QArray<int> OPimTodoAccessXML::queryByExample( const OPimTodo&, int, const QDateTime& ) {
QArray<int> ids(0);
@@ -331,6 +331,6 @@ QArray<int> OTodoAccessXML::queryByExample( const OTodo&, int, const QDateTime&
}
-OTodo OTodoAccessXML::find( int uid )const {
- OTodo todo;
+OPimTodo OPimTodoAccessXML::find( int uid )const {
+ OPimTodo todo;
todo.setUid( 0 ); // isEmpty()
- QMap<int, OTodo>::ConstIterator it = m_events.find( uid );
+ QMap<int, OPimTodo>::ConstIterator it = m_events.find( uid );
if ( it != m_events.end() )
@@ -340,3 +340,3 @@ OTodo OTodoAccessXML::find( int uid )const {
}
-void OTodoAccessXML::clear() {
+void OPimTodoAccessXML::clear() {
if (m_opened )
@@ -346,3 +346,3 @@ void OTodoAccessXML::clear() {
}
-bool OTodoAccessXML::add( const OTodo& todo ) {
+bool OPimTodoAccessXML::add( const OPimTodo& todo ) {
// qWarning("add");
@@ -353,3 +353,3 @@ bool OTodoAccessXML::add( const OTodo& todo ) {
}
-bool OTodoAccessXML::remove( int uid ) {
+bool OPimTodoAccessXML::remove( int uid ) {
m_changed = true;
@@ -359,3 +359,3 @@ bool OTodoAccessXML::remove( int uid ) {
}
-bool OTodoAccessXML::replace( const OTodo& todo) {
+bool OPimTodoAccessXML::replace( const OPimTodo& todo) {
m_changed = true;
@@ -365,3 +365,3 @@ bool OTodoAccessXML::replace( const OTodo& todo) {
}
-QArray<int> OTodoAccessXML::effectiveToDos( const QDate& start,
+QArray<int> OPimTodoAccessXML::effectiveToDos( const QDate& start,
const QDate& end,
@@ -369,3 +369,3 @@ QArray<int> OTodoAccessXML::effectiveToDos( const QDate& start,
QArray<int> ids( m_events.count() );
- QMap<int, OTodo>::Iterator it;
+ QMap<int, OPimTodo>::Iterator it;
@@ -387,3 +387,3 @@ QArray<int> OTodoAccessXML::effectiveToDos( const QDate& start,
}
-QArray<int> OTodoAccessXML::overDue() {
+QArray<int> OPimTodoAccessXML::overDue() {
QArray<int> ids( m_events.count() );
@@ -391,3 +391,3 @@ QArray<int> OTodoAccessXML::overDue() {
- QMap<int, OTodo>::Iterator it;
+ QMap<int, OPimTodo>::Iterator it;
for ( it = m_events.begin(); it != m_events.end(); ++it ) {
@@ -404,3 +404,3 @@ QArray<int> OTodoAccessXML::overDue() {
/* private */
-void OTodoAccessXML::todo( QAsciiDict<int>* dict, OTodo& ev,
+void OPimTodoAccessXML::todo( QAsciiDict<int>* dict, OPimTodo& ev,
const QCString& attr, const QString& val) {
@@ -418,45 +418,45 @@ void OTodoAccessXML::todo( QAsciiDict<int>* dict, OTodo& ev,
switch( *find ) {
- case OTodo::Uid:
+ case OPimTodo::Uid:
ev.setUid( val.toInt() );
break;
- case OTodo::Category:
+ case OPimTodo::Category:
ev.setCategories( ev.idsFromString( val ) );
break;
- case OTodo::HasDate:
+ case OPimTodo::HasDate:
ev.setHasDueDate( val.toInt() );
break;
- case OTodo::Completed:
+ case OPimTodo::Completed:
ev.setCompleted( val.toInt() );
break;
- case OTodo::Description:
+ case OPimTodo::Description:
ev.setDescription( val );
break;
- case OTodo::Summary:
+ case OPimTodo::Summary:
ev.setSummary( val );
break;
- case OTodo::Priority:
+ case OPimTodo::Priority:
ev.setPriority( val.toInt() );
break;
- case OTodo::DateDay:
+ case OPimTodo::DateDay:
m_day = val.toInt();
break;
- case OTodo::DateMonth:
+ case OPimTodo::DateMonth:
m_month = val.toInt();
break;
- case OTodo::DateYear:
+ case OPimTodo::DateYear:
m_year = val.toInt();
break;
- case OTodo::Progress:
+ case OPimTodo::Progress:
ev.setProgress( val.toInt() );
break;
- case OTodo::CompletedDate:
- ev.setCompletedDate( OConversion::dateFromString( val ) );
+ case OPimTodo::CompletedDate:
+ ev.setCompletedDate( OPimDateConversion::dateFromString( val ) );
break;
- case OTodo::StartDate:
- ev.setStartDate( OConversion::dateFromString( val ) );
+ case OPimTodo::StartDate:
+ ev.setStartDate( OPimDateConversion::dateFromString( val ) );
break;
- case OTodo::State:
+ case OPimTodo::State:
ev.setState( val.toInt() );
break;
- case OTodo::Alarms:{
+ case OPimTodo::Alarms:{
OPimNotifyManager &manager = ev.notifiers();
@@ -466,4 +466,4 @@ void OTodoAccessXML::todo( QAsciiDict<int>* dict, OTodo& ev,
qWarning("alarm: %s", alarm.join("___").latin1() );
- qWarning("alarm[0]: %s %s", alarm[0].latin1(), OConversion::dateTimeFromString( alarm[0] ).toString().latin1() );
- OPimAlarm al( alarm[2].toInt(), OConversion::dateTimeFromString( alarm[0] ), alarm[1].toInt() );
+ qWarning("alarm[0]: %s %s", alarm[0].latin1(), OPimDateConversion::dateTimeFromString( alarm[0] ).toString().latin1() );
+ OPimAlarm al( alarm[2].toInt(), OPimDateConversion::dateTimeFromString( alarm[0] ), alarm[1].toInt() );
manager.add( al );
@@ -472,3 +472,3 @@ void OTodoAccessXML::todo( QAsciiDict<int>* dict, OTodo& ev,
break;
- case OTodo::Reminders:{
+ case OPimTodo::Reminders:{
OPimNotifyManager &manager = ev.notifiers();
@@ -481,3 +481,3 @@ void OTodoAccessXML::todo( QAsciiDict<int>* dict, OTodo& ev,
break;
- case OTodo::CrossReference:
+ case OPimTodo::CrossReference:
{
@@ -501,13 +501,13 @@ void OTodoAccessXML::todo( QAsciiDict<int>* dict, OTodo& ev,
if ( val == "Daily" )
- recur()->setType( ORecur::Daily );
+ recur()->setType( OPimRecurrence::Daily );
else if ( val == "Weekly" )
- recur()->setType( ORecur::Weekly);
+ recur()->setType( OPimRecurrence::Weekly);
else if ( val == "MonthlyDay" )
- recur()->setType( ORecur::MonthlyDay );
+ recur()->setType( OPimRecurrence::MonthlyDay );
else if ( val == "MonthlyDate" )
- recur()->setType( ORecur::MonthlyDate );
+ recur()->setType( OPimRecurrence::MonthlyDate );
else if ( val == "Yearly" )
- recur()->setType( ORecur::Yearly );
+ recur()->setType( OPimRecurrence::Yearly );
else
- recur()->setType( ORecur::NoRepeat );
+ recur()->setType( OPimRecurrence::NoRepeat );
break;
@@ -555,3 +555,3 @@ QString customToXml(const QMap<QString, QString>& customMap )
-QString OTodoAccessXML::toString( const OTodo& ev )const {
+QString OPimTodoAccessXML::toString( const OPimTodo& ev )const {
QString str;
@@ -593,5 +593,5 @@ QString OTodoAccessXML::toString( const OTodo& ev )const {
if ( ev.hasStartDate() )
- str += "StartDate=\""+ OConversion::dateToString( ev.startDate() ) +"\" ";
+ str += "StartDate=\""+ OPimDateConversion::dateToString( ev.startDate() ) +"\" ";
if ( ev.hasCompletedDate() )
- str += "CompletedDate=\""+ OConversion::dateToString( ev.completedDate() ) +"\" ";
+ str += "CompletedDate=\""+ OPimDateConversion::dateToString( ev.completedDate() ) +"\" ";
if ( ev.hasState() )
@@ -612,3 +612,3 @@ QString OTodoAccessXML::toString( const OTodo& ev )const {
if ( (*it).dateTime().isValid() ) {
- als << OConversion::dateTimeToString( (*it).dateTime() )
+ als << OPimDateConversion::dateTimeToString( (*it).dateTime() )
+ ":" + QString::number( (*it).duration() )
@@ -624,3 +624,3 @@ QString OTodoAccessXML::toString( const OTodo& ev )const {
/*
- * now the same for reminders but more easy. We just save the uid of the OEvent.
+ * now the same for reminders but more easy. We just save the uid of the OPimEvent.
*/
@@ -641,3 +641,3 @@ QString OTodoAccessXML::toString( const OTodo& ev )const {
}
-QString OTodoAccessXML::toString( const QArray<int>& ints ) const {
+QString OPimTodoAccessXML::toString( const QArray<int>& ints ) const {
return Qtopia::Record::idsToString( ints );
@@ -650,4 +650,4 @@ QString OTodoAccessXML::toString( const QArray<int>& ints ) const {
-struct OTodoXMLContainer {
- OTodo todo;
+struct OPimTodoXMLContainer {
+ OPimTodo todo;
};
@@ -655,3 +655,3 @@ struct OTodoXMLContainer {
namespace {
- inline QString string( const OTodo& todo) {
+ inline QString string( const OPimTodo& todo) {
return todo.summary().isEmpty() ?
@@ -660,3 +660,3 @@ namespace {
}
- inline int completed( const OTodo& todo1, const OTodo& todo2) {
+ inline int completed( const OPimTodo& todo1, const OPimTodo& todo2) {
int ret = 0;
@@ -666,9 +666,9 @@ namespace {
}
- inline int priority( const OTodo& t1, const OTodo& t2) {
+ inline int priority( const OPimTodo& t1, const OPimTodo& t2) {
return ( t1.priority() - t2.priority() );
}
- inline int description( const OTodo& t1, const OTodo& t2) {
+ inline int description( const OPimTodo& t1, const OPimTodo& t2) {
return QString::compare( string(t1), string(t2) );
}
- inline int deadline( const OTodo& t1, const OTodo& t2) {
+ inline int deadline( const OPimTodo& t1, const OPimTodo& t2) {
int ret = 0;
@@ -705,6 +705,6 @@ namespace {
*/
-class OTodoXMLVector : public QVector<OTodoXMLContainer> {
+class OPimTodoXMLVector : public QVector<OPimTodoXMLContainer> {
public:
- OTodoXMLVector(int size, bool asc, int sort)
- : QVector<OTodoXMLContainer>( size )
+ OPimTodoXMLVector(int size, bool asc, int sort)
+ : QVector<OPimTodoXMLContainer>( size )
{
@@ -715,3 +715,3 @@ public:
/* return the summary/description */
- QString string( const OTodo& todo) {
+ QString string( const OPimTodo& todo) {
return todo.summary().isEmpty() ?
@@ -728,4 +728,4 @@ public:
int ret =0;
- OTodoXMLContainer* con1 = (OTodoXMLContainer*)d1;
- OTodoXMLContainer* con2 = (OTodoXMLContainer*)d2;
+ OPimTodoXMLContainer* con1 = (OPimTodoXMLContainer*)d1;
+ OPimTodoXMLContainer* con2 = (OPimTodoXMLContainer*)d2;
@@ -818,6 +818,6 @@ public:
-QArray<int> OTodoAccessXML::sorted( bool asc, int sortOrder,
+QArray<int> OPimTodoAccessXML::sorted( bool asc, int sortOrder,
int sortFilter, int cat ) {
- OTodoXMLVector vector(m_events.count(), asc,sortOrder );
- QMap<int, OTodo>::Iterator it;
+ OPimTodoXMLVector vector(m_events.count(), asc,sortOrder );
+ QMap<int, OPimTodo>::Iterator it;
int item = 0;
@@ -853,3 +853,3 @@ QArray<int> OTodoAccessXML::sorted( bool asc, int sortOrder,
- OTodoXMLContainer* con = new OTodoXMLContainer();
+ OPimTodoXMLContainer* con = new OPimTodoXMLContainer();
con->todo = (*it);
@@ -868,5 +868,5 @@ QArray<int> OTodoAccessXML::sorted( bool asc, int sortOrder,
};
-void OTodoAccessXML::removeAllCompleted() {
- QMap<int, OTodo> events = m_events;
- for ( QMap<int, OTodo>::Iterator it = m_events.begin(); it != m_events.end(); ++it ) {
+void OPimTodoAccessXML::removeAllCompleted() {
+ QMap<int, OPimTodo> events = m_events;
+ for ( QMap<int, OPimTodo>::Iterator it = m_events.begin(); it != m_events.end(); ++it ) {
if ( (*it).isCompleted() )
@@ -876,3 +876,3 @@ void OTodoAccessXML::removeAllCompleted() {
}
-QBitArray OTodoAccessXML::supports()const {
+QBitArray OPimTodoAccessXML::supports()const {
static QBitArray ar = sup();
@@ -880,10 +880,10 @@ QBitArray OTodoAccessXML::supports()const {
}
-QBitArray OTodoAccessXML::sup() {
- QBitArray ar( OTodo::CompletedDate +1 );
+QBitArray OPimTodoAccessXML::sup() {
+ QBitArray ar( OPimTodo::CompletedDate +1 );
ar.fill( true );
- ar[OTodo::CrossReference] = false;
- ar[OTodo::State ] = false;
- ar[OTodo::Reminders] = false;
- ar[OTodo::Notifiers] = false;
- ar[OTodo::Maintainer] = false;
+ ar[OPimTodo::CrossReference] = false;
+ ar[OPimTodo::State ] = false;
+ ar[OPimTodo::Reminders] = false;
+ ar[OPimTodo::Notifiers] = false;
+ ar[OPimTodo::Maintainer] = false;
@@ -891,3 +891,3 @@ QBitArray OTodoAccessXML::sup() {
}
-QArray<int> OTodoAccessXML::matchRegexp( const QRegExp &r ) const
+QArray<int> OPimTodoAccessXML::matchRegexp( const QRegExp &r ) const
{
@@ -896,3 +896,3 @@ QArray<int> OTodoAccessXML::matchRegexp( const QRegExp &r ) const
- QMap<int, OTodo>::ConstIterator it;
+ QMap<int, OPimTodo>::ConstIterator it;
for (it = m_events.begin(); it != m_events.end(); ++it ) {
diff --git a/libopie2/opiepim/backend/otodoaccessxml.h b/libopie2/opiepim/backend/otodoaccessxml.h
index d634398..3a51543 100644
--- a/libopie2/opiepim/backend/otodoaccessxml.h
+++ b/libopie2/opiepim/backend/otodoaccessxml.h
@@ -39,3 +39,3 @@ namespace Opie {
-class OTodoAccessXML : public OTodoAccessBackend {
+class OPimTodoAccessXML : public OPimTodoAccessBackend {
public:
@@ -44,5 +44,5 @@ public:
*/
- OTodoAccessXML( const QString& appName,
+ OPimTodoAccessXML( const QString& appName,
const QString& fileName = QString::null );
- ~OTodoAccessXML();
+ ~OPimTodoAccessXML();
@@ -54,9 +54,9 @@ public:
QArray<int> matchRegexp(const QRegExp &r) const;
- QArray<int> queryByExample( const OTodo&, int querysettings, const QDateTime& d = QDateTime() );
- OTodo find( int uid )const;
+ QArray<int> queryByExample( const OPimTodo&, int querysettings, const QDateTime& d = QDateTime() );
+ OPimTodo find( int uid )const;
void clear();
- bool add( const OTodo& );
+ bool add( const OPimTodo& );
bool remove( int uid );
void removeAllCompleted();
- bool replace( const OTodo& );
+ bool replace( const OPimTodo& );
@@ -72,6 +72,6 @@ private:
static QBitArray sup();
- void todo( QAsciiDict<int>*, OTodo&,const QCString&,const QString& );
- QString toString( const OTodo& )const;
+ void todo( QAsciiDict<int>*, OPimTodo&,const QCString&,const QString& );
+ QString toString( const OPimTodo& )const;
QString toString( const QArray<int>& ints ) const;
- QMap<int, OTodo> m_events;
+ QMap<int, OPimTodo> m_events;
QString m_file;
@@ -80,4 +80,4 @@ private:
bool m_changed : 1;
- class OTodoAccessXMLPrivate;
- OTodoAccessXMLPrivate* d;
+ class OPimTodoAccessXMLPrivate;
+ OPimTodoAccessXMLPrivate* d;
int m_year, m_month, m_day;
diff --git a/libopie2/opiepim/core/core.pro b/libopie2/opiepim/core/core.pro
index 0473622..597b1e8 100644
--- a/libopie2/opiepim/core/core.pro
+++ b/libopie2/opiepim/core/core.pro
@@ -1,2 +1,3 @@
-HEADERS += core/oconversion.h \
+HEADERS += \
+ core/opimdateconversion.h \
core/opimcache.h \
@@ -8,7 +9,8 @@ HEADERS += core/oconversion.h \
core/opimxrefpartner.h \
- core/orecur.h \
- core/otemplatebase.h \
- core/otimezone.h
+ core/opimrecurrence.h \
+ core/opimtemplatebase.h \
+ core/opimtimezone.h
-SOURCES += core/oconversion.cpp \
+SOURCES += \
+ core/opimdateconversion.cpp \
core/opimmaintainer.cpp \
@@ -19,3 +21,3 @@ SOURCES += core/oconversion.cpp \
core/opimxrefpartner.cpp \
- core/orecur.cpp \
- core/otimezone.cpp
+ core/opimrecurrence.cpp \
+ core/opimtimezone.cpp
diff --git a/libopie2/opiepim/core/ocontactaccess.cpp b/libopie2/opiepim/core/ocontactaccess.cpp
index f67a40c..c12e138 100644
--- a/libopie2/opiepim/core/ocontactaccess.cpp
+++ b/libopie2/opiepim/core/ocontactaccess.cpp
@@ -57,5 +57,5 @@ namespace Opie {
-OContactAccess::OContactAccess ( const QString appname, const QString ,
- OContactAccessBackend* end, bool autosync ):
- OPimAccessTemplate<OContact>( end )
+OPimContactAccess::OPimContactAccess ( const QString appname, const QString ,
+ OPimContactAccessBackend* end, bool autosync ):
+ OPimAccessTemplate<OPimContact>( end )
{
@@ -66,3 +66,3 @@ OContactAccess::OContactAccess ( const QString appname, const QString ,
qWarning ("Using BackendFactory !");
- end = OBackendFactory<OContactAccessBackend>::Default( "contact", appname );
+ end = OBackendFactory<OPimContactAccessBackend>::Default( "contact", appname );
}
@@ -70,3 +70,3 @@ OContactAccess::OContactAccess ( const QString appname, const QString ,
m_backEnd = end;
- OPimAccessTemplate<OContact>::setBackEnd (end);
+ OPimAccessTemplate<OPimContact>::setBackEnd (end);
@@ -85,3 +85,3 @@ OContactAccess::OContactAccess ( const QString appname, const QString ,
}
-OContactAccess::~OContactAccess ()
+OPimContactAccess::~OPimContactAccess ()
{
@@ -95,3 +95,3 @@ OContactAccess::~OContactAccess ()
-bool OContactAccess::save ()
+bool OPimContactAccess::save ()
{
@@ -101,6 +101,6 @@ bool OContactAccess::save ()
*/
- if ( OPimAccessTemplate<OContact>::wasChangedExternally() )
+ if ( OPimAccessTemplate<OPimContact>::wasChangedExternally() )
reload();
- bool status = OPimAccessTemplate<OContact>::save();
+ bool status = OPimAccessTemplate<OPimContact>::save();
if ( !status ) return false;
@@ -114,3 +114,3 @@ bool OContactAccess::save ()
-const uint OContactAccess::querySettings()
+const uint OPimContactAccess::querySettings()
{
@@ -119,3 +119,3 @@ const uint OContactAccess::querySettings()
-bool OContactAccess::hasQuerySettings ( int querySettings ) const
+bool OPimContactAccess::hasQuerySettings ( int querySettings ) const
{
@@ -123,6 +123,6 @@ bool OContactAccess::hasQuerySettings ( int querySettings ) const
}
-ORecordList<OContact> OContactAccess::sorted( bool ascending, int sortOrder, int sortFilter, int cat ) const
+OPimRecordList<OPimContact> OPimContactAccess::sorted( bool ascending, int sortOrder, int sortFilter, int cat ) const
{
QArray<int> matchingContacts = m_backEnd -> sorted( ascending, sortOrder, sortFilter, cat );
- return ( ORecordList<OContact>(matchingContacts, this) );
+ return ( OPimRecordList<OPimContact>(matchingContacts, this) );
}
@@ -130,3 +130,3 @@ ORecordList<OContact> OContactAccess::sorted( bool ascending, int sortOrder, int
-bool OContactAccess::wasChangedExternally()const
+bool OPimContactAccess::wasChangedExternally()const
{
@@ -136,12 +136,12 @@ bool OContactAccess::wasChangedExternally()const
-void OContactAccess::copMessage( const QCString &msg, const QByteArray & )
+void OPimContactAccess::copMessage( const QCString &msg, const QByteArray & )
{
if ( msg == "addressbookUpdated()" ){
- qWarning ("OContactAccess: Received addressbokUpdated()");
+ qWarning ("OPimContactAccess: Received addressbokUpdated()");
emit signalChanged ( this );
} else if ( msg == "flush()" ) {
- qWarning ("OContactAccess: Received flush()");
+ qWarning ("OPimContactAccess: Received flush()");
save ();
} else if ( msg == "reload()" ) {
- qWarning ("OContactAccess: Received reload()");
+ qWarning ("OPimContactAccess: Received reload()");
reload ();
diff --git a/libopie2/opiepim/core/ocontactaccess.h b/libopie2/opiepim/core/ocontactaccess.h
index 505c87b..cf5333a 100644
--- a/libopie2/opiepim/core/ocontactaccess.h
+++ b/libopie2/opiepim/core/ocontactaccess.h
@@ -43,3 +43,3 @@
-#include <opie2/ocontact.h>
+#include <opie2/opimcontact.h>
#include <opie2/ocontactaccessbackend.h>
@@ -57,3 +57,3 @@ namespace Opie {
*/
-class OContactAccess: public QObject, public OPimAccessTemplate<OContact>
+class OPimContactAccess: public QObject, public OPimAccessTemplate<OPimContact>
{
@@ -74,7 +74,7 @@ class OContactAccess: public QObject, public OPimAccessTemplate<OContact>
* to react itself, it should be disabled by setting it to <b>false</b>
- * @see OContactAccessBackend
+ * @see OPimContactAccessBackend
*/
- OContactAccess (const QString appname, const QString filename = 0l,
- OContactAccessBackend* backend = 0l, bool handlesync = true);
- ~OContactAccess ();
+ OPimContactAccess (const QString appname, const QString filename = 0l,
+ OPimContactAccessBackend* backend = 0l, bool handlesync = true);
+ ~OPimContactAccess ();
@@ -137,3 +137,3 @@ class OContactAccess: public QObject, public OPimAccessTemplate<OContact>
*/
- void signalChanged ( const OContactAccess *which );
+ void signalChanged ( const OPimContactAccess *which );
@@ -141,5 +141,5 @@ class OContactAccess: public QObject, public OPimAccessTemplate<OContact>
private:
- // class OContactAccessPrivate;
- // OContactAccessPrivate* d;
- OContactAccessBackend *m_backEnd;
+ // class OPimContactAccessPrivate;
+ // OPimContactAccessPrivate* d;
+ OPimContactAccessBackend *m_backEnd;
bool m_loading:1;
diff --git a/libopie2/opiepim/core/odatebookaccess.cpp b/libopie2/opiepim/core/odatebookaccess.cpp
index 8c527f6..ac310c1 100644
--- a/libopie2/opiepim/core/odatebookaccess.cpp
+++ b/libopie2/opiepim/core/odatebookaccess.cpp
@@ -40,3 +40,3 @@ namespace Opie {
ODateBookAccess::ODateBookAccess( ODateBookAccessBackend* back, enum Access ac )
- : OPimAccessTemplate<OEvent>( back )
+ : OPimAccessTemplate<OPimEvent>( back )
{
diff --git a/libopie2/opiepim/core/odatebookaccess.h b/libopie2/opiepim/core/odatebookaccess.h
index 38dc754..6c9290f 100644
--- a/libopie2/opiepim/core/odatebookaccess.h
+++ b/libopie2/opiepim/core/odatebookaccess.h
@@ -34,3 +34,3 @@
-#include <opie2/oevent.h>
+#include <opie2/opimevent.h>
@@ -46,3 +46,3 @@ namespace Opie {
*/
-class ODateBookAccess : public OPimAccessTemplate<OEvent> {
+class ODateBookAccess : public OPimAccessTemplate<OPimEvent> {
public:
diff --git a/libopie2/opiepim/core/opimaccesstemplate.h b/libopie2/opiepim/core/opimaccesstemplate.h
index 5826cbc..f1bcc44 100644
--- a/libopie2/opiepim/core/opimaccesstemplate.h
+++ b/libopie2/opiepim/core/opimaccesstemplate.h
@@ -35,6 +35,6 @@
#include <opie2/opimaccessbackend.h>
-#include <opie2/orecordlist.h>
+#include <opie2/opimrecordlist.h>
#include <opie2/opimcache.h>
-#include <opie2/otemplatebase.h>
+#include <opie2/opimtemplatebase.h>
@@ -59,3 +59,3 @@ public:
};
- typedef ORecordList<T> List;
+ typedef OPimRecordList<T> List;
typedef OPimAccessBackend<T> BackEnd;
diff --git a/libopie2/opiepim/ocontact.cpp b/libopie2/opiepim/core/opimcontact.cpp
index fa5313f..a5df597 100644
--- a/libopie2/opiepim/ocontact.cpp
+++ b/libopie2/opiepim/core/opimcontact.cpp
@@ -31,3 +31,3 @@
-#include "ocontact.h"
+#include "opimcontact.h"
@@ -35,3 +35,3 @@
#include <opie2/opimresolver.h>
-#include <opie2/oconversion.h>
+#include <opie2/opimdateconversion.h>
#include <qpe/stringutil.h>
@@ -67,3 +67,3 @@ namespace Opie
*/
-OContact::OContact():OPimRecord(), mMap(), d( 0 )
+OPimContact::OPimContact():OPimRecord(), mMap(), d( 0 )
{}
@@ -75,3 +75,3 @@ OContact::OContact():OPimRecord(), mMap(), d( 0 )
*/
-OContact::OContact( const QMap<int, QString> &fromMap ):OPimRecord(), mMap( fromMap ), d( 0 )
+OPimContact::OPimContact( const QMap<int, QString> &fromMap ):OPimRecord(), mMap( fromMap ), d( 0 )
{
@@ -98,6 +98,6 @@ OContact::OContact( const QMap<int, QString> &fromMap ):OPimRecord(), mMap( from
*/
-OContact::~OContact()
+OPimContact::~OPimContact()
{}
-/*! \fn void OContact::setTitle( const QString &str )
+/*! \fn void OPimContact::setTitle( const QString &str )
Sets the title of the contact to \a str.
@@ -105,3 +105,3 @@ OContact::~OContact()
-/*! \fn void OContact::setFirstName( const QString &str )
+/*! \fn void OPimContact::setFirstName( const QString &str )
Sets the first name of the contact to \a str.
@@ -109,3 +109,3 @@ OContact::~OContact()
-/*! \fn void OContact::setMiddleName( const QString &str )
+/*! \fn void OPimContact::setMiddleName( const QString &str )
Sets the middle name of the contact to \a str.
@@ -113,3 +113,3 @@ OContact::~OContact()
-/*! \fn void OContact::setLastName( const QString &str )
+/*! \fn void OPimContact::setLastName( const QString &str )
Sets the last name of the contact to \a str.
@@ -117,3 +117,3 @@ OContact::~OContact()
-/*! \fn void OContact::setSuffix( const QString &str )
+/*! \fn void OPimContact::setSuffix( const QString &str )
Sets the suffix of the contact to \a str.
@@ -121,3 +121,3 @@ OContact::~OContact()
-/*! \fn void OContact::setFileAs( const QString &str )
+/*! \fn void OPimContact::setFileAs( const QString &str )
Sets the contact to filed as \a str.
@@ -125,3 +125,3 @@ OContact::~OContact()
-/*! \fn void OContact::setDefaultEmail( const QString &str )
+/*! \fn void OPimContact::setDefaultEmail( const QString &str )
Sets the default email of the contact to \a str.
@@ -129,3 +129,3 @@ OContact::~OContact()
-/*! \fn void OContact::setHomeStreet( const QString &str )
+/*! \fn void OPimContact::setHomeStreet( const QString &str )
Sets the home street address of the contact to \a str.
@@ -133,3 +133,3 @@ OContact::~OContact()
-/*! \fn void OContact::setHomeCity( const QString &str )
+/*! \fn void OPimContact::setHomeCity( const QString &str )
Sets the home city of the contact to \a str.
@@ -137,3 +137,3 @@ OContact::~OContact()
-/*! \fn void OContact::setHomeState( const QString &str )
+/*! \fn void OPimContact::setHomeState( const QString &str )
Sets the home state of the contact to \a str.
@@ -141,3 +141,3 @@ OContact::~OContact()
-/*! \fn void OContact::setHomeZip( const QString &str )
+/*! \fn void OPimContact::setHomeZip( const QString &str )
Sets the home zip code of the contact to \a str.
@@ -145,3 +145,3 @@ OContact::~OContact()
-/*! \fn void OContact::setHomeCountry( const QString &str )
+/*! \fn void OPimContact::setHomeCountry( const QString &str )
Sets the home country of the contact to \a str.
@@ -149,3 +149,3 @@ OContact::~OContact()
-/*! \fn void OContact::setHomePhone( const QString &str )
+/*! \fn void OPimContact::setHomePhone( const QString &str )
Sets the home phone number of the contact to \a str.
@@ -153,3 +153,3 @@ OContact::~OContact()
-/*! \fn void OContact::setHomeFax( const QString &str )
+/*! \fn void OPimContact::setHomeFax( const QString &str )
Sets the home fax number of the contact to \a str.
@@ -157,3 +157,3 @@ OContact::~OContact()
-/*! \fn void OContact::setHomeMobile( const QString &str )
+/*! \fn void OPimContact::setHomeMobile( const QString &str )
Sets the home mobile phone number of the contact to \a str.
@@ -161,3 +161,3 @@ OContact::~OContact()
-/*! \fn void OContact::setHomeWebpage( const QString &str )
+/*! \fn void OPimContact::setHomeWebpage( const QString &str )
Sets the home webpage of the contact to \a str.
@@ -165,3 +165,3 @@ OContact::~OContact()
-/*! \fn void OContact::setCompany( const QString &str )
+/*! \fn void OPimContact::setCompany( const QString &str )
Sets the company for contact to \a str.
@@ -169,3 +169,3 @@ OContact::~OContact()
-/*! \fn void OContact::setJobTitle( const QString &str )
+/*! \fn void OPimContact::setJobTitle( const QString &str )
Sets the job title of the contact to \a str.
@@ -173,3 +173,3 @@ OContact::~OContact()
-/*! \fn void OContact::setDepartment( const QString &str )
+/*! \fn void OPimContact::setDepartment( const QString &str )
Sets the department for contact to \a str.
@@ -177,3 +177,3 @@ OContact::~OContact()
-/*! \fn void OContact::setOffice( const QString &str )
+/*! \fn void OPimContact::setOffice( const QString &str )
Sets the office for contact to \a str.
@@ -181,3 +181,3 @@ OContact::~OContact()
-/*! \fn void OContact::setBusinessStreet( const QString &str )
+/*! \fn void OPimContact::setBusinessStreet( const QString &str )
Sets the business street address of the contact to \a str.
@@ -185,3 +185,3 @@ OContact::~OContact()
-/*! \fn void OContact::setBusinessCity( const QString &str )
+/*! \fn void OPimContact::setBusinessCity( const QString &str )
Sets the business city of the contact to \a str.
@@ -189,3 +189,3 @@ OContact::~OContact()
-/*! \fn void OContact::setBusinessState( const QString &str )
+/*! \fn void OPimContact::setBusinessState( const QString &str )
Sets the business state of the contact to \a str.
@@ -193,3 +193,3 @@ OContact::~OContact()
-/*! \fn void OContact::setBusinessZip( const QString &str )
+/*! \fn void OPimContact::setBusinessZip( const QString &str )
Sets the business zip code of the contact to \a str.
@@ -197,3 +197,3 @@ OContact::~OContact()
-/*! \fn void OContact::setBusinessCountry( const QString &str )
+/*! \fn void OPimContact::setBusinessCountry( const QString &str )
Sets the business country of the contact to \a str.
@@ -201,3 +201,3 @@ OContact::~OContact()
-/*! \fn void OContact::setBusinessPhone( const QString &str )
+/*! \fn void OPimContact::setBusinessPhone( const QString &str )
Sets the business phone number of the contact to \a str.
@@ -205,3 +205,3 @@ OContact::~OContact()
-/*! \fn void OContact::setBusinessFax( const QString &str )
+/*! \fn void OPimContact::setBusinessFax( const QString &str )
Sets the business fax number of the contact to \a str.
@@ -209,3 +209,3 @@ OContact::~OContact()
-/*! \fn void OContact::setBusinessMobile( const QString &str )
+/*! \fn void OPimContact::setBusinessMobile( const QString &str )
Sets the business mobile phone number of the contact to \a str.
@@ -213,3 +213,3 @@ OContact::~OContact()
-/*! \fn void OContact::setBusinessPager( const QString &str )
+/*! \fn void OPimContact::setBusinessPager( const QString &str )
Sets the business pager number of the contact to \a str.
@@ -217,3 +217,3 @@ OContact::~OContact()
-/*! \fn void OContact::setBusinessWebpage( const QString &str )
+/*! \fn void OPimContact::setBusinessWebpage( const QString &str )
Sets the business webpage of the contact to \a str.
@@ -221,3 +221,3 @@ OContact::~OContact()
-/*! \fn void OContact::setProfession( const QString &str )
+/*! \fn void OPimContact::setProfession( const QString &str )
Sets the profession of the contact to \a str.
@@ -225,3 +225,3 @@ OContact::~OContact()
-/*! \fn void OContact::setAssistant( const QString &str )
+/*! \fn void OPimContact::setAssistant( const QString &str )
Sets the assistant of the contact to \a str.
@@ -229,3 +229,3 @@ OContact::~OContact()
-/*! \fn void OContact::setManager( const QString &str )
+/*! \fn void OPimContact::setManager( const QString &str )
Sets the manager of the contact to \a str.
@@ -233,3 +233,3 @@ OContact::~OContact()
-/*! \fn void OContact::setSpouse( const QString &str )
+/*! \fn void OPimContact::setSpouse( const QString &str )
Sets the spouse of the contact to \a str.
@@ -237,3 +237,3 @@ OContact::~OContact()
-/*! \fn void OContact::setGender( const QString &str )
+/*! \fn void OPimContact::setGender( const QString &str )
Sets the gender of the contact to \a str.
@@ -241,3 +241,3 @@ OContact::~OContact()
-/*! \fn void OContact::setNickname( const QString &str )
+/*! \fn void OPimContact::setNickname( const QString &str )
Sets the nickname of the contact to \a str.
@@ -245,3 +245,3 @@ OContact::~OContact()
-/*! \fn void OContact::setNotes( const QString &str )
+/*! \fn void OPimContact::setNotes( const QString &str )
Sets the notes about the contact to \a str.
@@ -249,3 +249,3 @@ OContact::~OContact()
-/*! \fn QString OContact::title() const
+/*! \fn QString OPimContact::title() const
Returns the title of the contact.
@@ -253,3 +253,3 @@ OContact::~OContact()
-/*! \fn QString OContact::firstName() const
+/*! \fn QString OPimContact::firstName() const
Returns the first name of the contact.
@@ -257,3 +257,3 @@ OContact::~OContact()
-/*! \fn QString OContact::middleName() const
+/*! \fn QString OPimContact::middleName() const
Returns the middle name of the contact.
@@ -261,3 +261,3 @@ OContact::~OContact()
-/*! \fn QString OContact::lastName() const
+/*! \fn QString OPimContact::lastName() const
Returns the last name of the contact.
@@ -265,3 +265,3 @@ OContact::~OContact()
-/*! \fn QString OContact::suffix() const
+/*! \fn QString OPimContact::suffix() const
Returns the suffix of the contact.
@@ -269,3 +269,3 @@ OContact::~OContact()
-/*! \fn QString OContact::fileAs() const
+/*! \fn QString OPimContact::fileAs() const
Returns the string the contact is filed as.
@@ -273,3 +273,3 @@ OContact::~OContact()
-/*! \fn QString OContact::defaultEmail() const
+/*! \fn QString OPimContact::defaultEmail() const
Returns the default email address of the contact.
@@ -277,3 +277,3 @@ OContact::~OContact()
-/*! \fn QString OContact::emails() const
+/*! \fn QString OPimContact::emails() const
Returns the list of email address for a contact separated by ';'s in a single
@@ -282,3 +282,3 @@ OContact::~OContact()
-/*! \fn QString OContact::homeStreet() const
+/*! \fn QString OPimContact::homeStreet() const
Returns the home street address of the contact.
@@ -286,3 +286,3 @@ OContact::~OContact()
-/*! \fn QString OContact::homeCity() const
+/*! \fn QString OPimContact::homeCity() const
Returns the home city of the contact.
@@ -290,3 +290,3 @@ OContact::~OContact()
-/*! \fn QString OContact::homeState() const
+/*! \fn QString OPimContact::homeState() const
Returns the home state of the contact.
@@ -294,3 +294,3 @@ OContact::~OContact()
-/*! \fn QString OContact::homeZip() const
+/*! \fn QString OPimContact::homeZip() const
Returns the home zip of the contact.
@@ -298,3 +298,3 @@ OContact::~OContact()
-/*! \fn QString OContact::homeCountry() const
+/*! \fn QString OPimContact::homeCountry() const
Returns the home country of the contact.
@@ -302,3 +302,3 @@ OContact::~OContact()
-/*! \fn QString OContact::homePhone() const
+/*! \fn QString OPimContact::homePhone() const
Returns the home phone number of the contact.
@@ -306,3 +306,3 @@ OContact::~OContact()
-/*! \fn QString OContact::homeFax() const
+/*! \fn QString OPimContact::homeFax() const
Returns the home fax number of the contact.
@@ -310,3 +310,3 @@ OContact::~OContact()
-/*! \fn QString OContact::homeMobile() const
+/*! \fn QString OPimContact::homeMobile() const
Returns the home mobile number of the contact.
@@ -314,3 +314,3 @@ OContact::~OContact()
-/*! \fn QString OContact::homeWebpage() const
+/*! \fn QString OPimContact::homeWebpage() const
Returns the home webpage of the contact.
@@ -318,3 +318,3 @@ OContact::~OContact()
-/*! \fn QString OContact::company() const
+/*! \fn QString OPimContact::company() const
Returns the company for the contact.
@@ -322,3 +322,3 @@ OContact::~OContact()
-/*! \fn QString OContact::department() const
+/*! \fn QString OPimContact::department() const
Returns the department for the contact.
@@ -326,3 +326,3 @@ OContact::~OContact()
-/*! \fn QString OContact::office() const
+/*! \fn QString OPimContact::office() const
Returns the office for the contact.
@@ -330,3 +330,3 @@ OContact::~OContact()
-/*! \fn QString OContact::jobTitle() const
+/*! \fn QString OPimContact::jobTitle() const
Returns the job title of the contact.
@@ -334,3 +334,3 @@ OContact::~OContact()
-/*! \fn QString OContact::profession() const
+/*! \fn QString OPimContact::profession() const
Returns the profession of the contact.
@@ -338,3 +338,3 @@ OContact::~OContact()
-/*! \fn QString OContact::assistant() const
+/*! \fn QString OPimContact::assistant() const
Returns the assistant of the contact.
@@ -342,3 +342,3 @@ OContact::~OContact()
-/*! \fn QString OContact::manager() const
+/*! \fn QString OPimContact::manager() const
Returns the manager of the contact.
@@ -346,3 +346,3 @@ OContact::~OContact()
-/*! \fn QString OContact::businessStreet() const
+/*! \fn QString OPimContact::businessStreet() const
Returns the business street address of the contact.
@@ -350,3 +350,3 @@ OContact::~OContact()
-/*! \fn QString OContact::businessCity() const
+/*! \fn QString OPimContact::businessCity() const
Returns the business city of the contact.
@@ -354,3 +354,3 @@ OContact::~OContact()
-/*! \fn QString OContact::businessState() const
+/*! \fn QString OPimContact::businessState() const
Returns the business state of the contact.
@@ -358,3 +358,3 @@ OContact::~OContact()
-/*! \fn QString OContact::businessZip() const
+/*! \fn QString OPimContact::businessZip() const
Returns the business zip of the contact.
@@ -362,3 +362,3 @@ OContact::~OContact()
-/*! \fn QString OContact::businessCountry() const
+/*! \fn QString OPimContact::businessCountry() const
Returns the business country of the contact.
@@ -366,3 +366,3 @@ OContact::~OContact()
-/*! \fn QString OContact::businessPhone() const
+/*! \fn QString OPimContact::businessPhone() const
Returns the business phone number of the contact.
@@ -370,3 +370,3 @@ OContact::~OContact()
-/*! \fn QString OContact::businessFax() const
+/*! \fn QString OPimContact::businessFax() const
Returns the business fax number of the contact.
@@ -374,3 +374,3 @@ OContact::~OContact()
-/*! \fn QString OContact::businessMobile() const
+/*! \fn QString OPimContact::businessMobile() const
Returns the business mobile number of the contact.
@@ -378,3 +378,3 @@ OContact::~OContact()
-/*! \fn QString OContact::businessPager() const
+/*! \fn QString OPimContact::businessPager() const
Returns the business pager number of the contact.
@@ -382,3 +382,3 @@ OContact::~OContact()
-/*! \fn QString OContact::businessWebpage() const
+/*! \fn QString OPimContact::businessWebpage() const
Returns the business webpage of the contact.
@@ -386,3 +386,3 @@ OContact::~OContact()
-/*! \fn QString OContact::spouse() const
+/*! \fn QString OPimContact::spouse() const
Returns the spouse of the contact.
@@ -390,3 +390,3 @@ OContact::~OContact()
-/*! \fn QString OContact::gender() const
+/*! \fn QString OPimContact::gender() const
Returns the gender of the contact.
@@ -394,3 +394,3 @@ OContact::~OContact()
-/*! \fn QString OContact::nickname() const
+/*! \fn QString OPimContact::nickname() const
Returns the nickname of the contact.
@@ -398,3 +398,3 @@ OContact::~OContact()
-/*! \fn QString OContact::children() const
+/*! \fn QString OPimContact::children() const
Returns the children of the contact.
@@ -402,3 +402,3 @@ OContact::~OContact()
-/*! \fn QString OContact::notes() const
+/*! \fn QString OPimContact::notes() const
Returns the notes relating to the the contact.
@@ -406,3 +406,3 @@ OContact::~OContact()
-/*! \fn QString OContact::groups() const
+/*! \fn QString OPimContact::groups() const
\internal
@@ -411,3 +411,3 @@ OContact::~OContact()
-/*! \fn QStringList OContact::groupList() const
+/*! \fn QStringList OPimContact::groupList() const
\internal
@@ -415,3 +415,3 @@ OContact::~OContact()
-/*! \fn QString OContact::field(int) const
+/*! \fn QString OPimContact::field(int) const
\internal
@@ -419,3 +419,3 @@ OContact::~OContact()
-/*! \fn void OContact::saveJournal( journal_action, const QString & = QString::null )
+/*! \fn void OPimContact::saveJournal( journal_action, const QString & = QString::null )
\internal
@@ -423,3 +423,3 @@ OContact::~OContact()
-/*! \fn void OContact::setUid( int id )
+/*! \fn void OPimContact::setUid( int id )
\internal
@@ -428,3 +428,3 @@ OContact::~OContact()
-/*! \enum OContact::journal_action
+/*! \enum OPimContact::journal_action
\internal
@@ -435,3 +435,3 @@ OContact::~OContact()
*/
-QMap<int, QString> OContact::toMap() const
+QMap<int, QString> OPimContact::toMap() const
{
@@ -447,3 +447,3 @@ QMap<int, QString> OContact::toMap() const
*/
-QString OContact::toRichText() const
+QString OPimContact::toRichText() const
{
@@ -782,3 +782,3 @@ QString OContact::toRichText() const
*/
-void OContact::insert( int key, const QString &v )
+void OPimContact::insert( int key, const QString &v )
{
@@ -794,3 +794,3 @@ void OContact::insert( int key, const QString &v )
*/
-void OContact::replace( int key, const QString & v )
+void OPimContact::replace( int key, const QString & v )
{
@@ -806,3 +806,3 @@ void OContact::replace( int key, const QString & v )
*/
-QString OContact::find( int key ) const
+QString OPimContact::find( int key ) const
{
@@ -814,3 +814,3 @@ QString OContact::find( int key ) const
*/
-QString OContact::displayAddress( const QString &street,
+QString OPimContact::displayAddress( const QString &street,
const QString &city,
@@ -839,3 +839,3 @@ QString OContact::displayAddress( const QString &street,
*/
-QString OContact::displayBusinessAddress() const
+QString OPimContact::displayBusinessAddress() const
{
@@ -849,3 +849,3 @@ QString OContact::displayBusinessAddress() const
*/
-QString OContact::displayHomeAddress() const
+QString OPimContact::displayHomeAddress() const
{
@@ -859,3 +859,3 @@ QString OContact::displayHomeAddress() const
*/
-QString OContact::fullName() const
+QString OPimContact::fullName() const
{
@@ -898,3 +898,3 @@ QString OContact::fullName() const
*/
-QStringList OContact::childrenList() const
+QStringList OPimContact::childrenList() const
{
@@ -903,3 +903,3 @@ QStringList OContact::childrenList() const
-/*! \fn void OContact::insertEmail( const QString &email )
+/*! \fn void OPimContact::insertEmail( const QString &email )
@@ -909,3 +909,3 @@ QStringList OContact::childrenList() const
-/*! \fn void OContact::removeEmail( const QString &email )
+/*! \fn void OPimContact::removeEmail( const QString &email )
@@ -916,3 +916,3 @@ QStringList OContact::childrenList() const
-/*! \fn void OContact::clearEmails()
+/*! \fn void OPimContact::clearEmails()
@@ -921,3 +921,3 @@ QStringList OContact::childrenList() const
-/*! \fn void OContact::insertEmails( const QStringList &emailList )
+/*! \fn void OPimContact::insertEmails( const QStringList &emailList )
@@ -930,3 +930,3 @@ QStringList OContact::childrenList() const
*/
-QStringList OContact::emailList() const
+QStringList OPimContact::emailList() const
{
@@ -952,3 +952,3 @@ QStringList OContact::emailList() const
*/
-void OContact::setFileAs()
+void OPimContact::setFileAs()
{
@@ -977,3 +977,3 @@ void OContact::setFileAs()
*/
-void OContact::save( QString &buf ) const
+void OPimContact::save( QString &buf ) const
{
@@ -1010,3 +1010,3 @@ void OContact::save( QString &buf ) const
*/
-QStringList OContact::fields()
+QStringList OPimContact::fields()
{
@@ -1073,3 +1073,3 @@ QStringList OContact::fields()
*/
-void OContact::setEmails( const QString &str )
+void OPimContact::setEmails( const QString &str )
{
@@ -1083,3 +1083,3 @@ void OContact::setEmails( const QString &str )
*/
-void OContact::setChildren( const QString &str )
+void OPimContact::setChildren( const QString &str )
{
@@ -1093,3 +1093,3 @@ void OContact::setChildren( const QString &str )
*/
-bool OContact::match( const QRegExp &r ) const
+bool OPimContact::match( const QRegExp &r ) const
{
@@ -1112,3 +1112,3 @@ bool OContact::match( const QRegExp &r ) const
-QString OContact::toShortText() const
+QString OPimContact::toShortText() const
{
@@ -1118,5 +1118,5 @@ QString OContact::toShortText() const
-QString OContact::type() const
+QString OPimContact::type() const
{
- return QString::fromLatin1( "OContact" );
+ return QString::fromLatin1( "OPimContact" );
}
@@ -1124,3 +1124,3 @@ QString OContact::type() const
-class QString OContact::recordField( int pos ) const
+class QString OPimContact::recordField( int pos ) const
{
@@ -1134,3 +1134,3 @@ class QString OContact::recordField( int pos ) const
-/*! \fn void OContact::setBirthday( const QDate& date )
+/*! \fn void OPimContact::setBirthday( const QDate& date )
Sets the birthday for the contact to \a date. If date is null
@@ -1138,3 +1138,3 @@ class QString OContact::recordField( int pos ) const
*/
-void OContact::setBirthday( const QDate &v )
+void OPimContact::setBirthday( const QDate &v )
{
@@ -1148,3 +1148,3 @@ void OContact::setBirthday( const QDate &v )
if ( v.isValid() )
- replace( Qtopia::Birthday, OConversion::dateToString( v ) );
+ replace( Qtopia::Birthday, OPimDateConversion::dateToString( v ) );
@@ -1153,3 +1153,3 @@ void OContact::setBirthday( const QDate &v )
-/*! \fn void OContact::setAnniversary( const QDate &date )
+/*! \fn void OPimContact::setAnniversary( const QDate &date )
Sets the anniversary of the contact to \a date. If date is
@@ -1157,3 +1157,3 @@ void OContact::setBirthday( const QDate &v )
*/
-void OContact::setAnniversary( const QDate &v )
+void OPimContact::setAnniversary( const QDate &v )
{
@@ -1167,3 +1167,3 @@ void OContact::setAnniversary( const QDate &v )
if ( v.isValid() )
- replace( Qtopia::Anniversary, OConversion::dateToString( v ) );
+ replace( Qtopia::Anniversary, OPimDateConversion::dateToString( v ) );
}
@@ -1171,6 +1171,6 @@ void OContact::setAnniversary( const QDate &v )
-/*! \fn QDate OContact::birthday() const
+/*! \fn QDate OPimContact::birthday() const
Returns the birthday of the contact.
*/
-QDate OContact::birthday() const
+QDate OPimContact::birthday() const
{
@@ -1179,3 +1179,3 @@ QDate OContact::birthday() const
if ( !str.isEmpty() )
- return OConversion::dateFromString ( str );
+ return OPimDateConversion::dateFromString ( str );
else
@@ -1185,6 +1185,6 @@ QDate OContact::birthday() const
-/*! \fn QDate OContact::anniversary() const
+/*! \fn QDate OPimContact::anniversary() const
Returns the anniversary of the contact.
*/
-QDate OContact::anniversary() const
+QDate OPimContact::anniversary() const
{
@@ -1194,3 +1194,3 @@ QDate OContact::anniversary() const
if ( !str.isEmpty() )
- return OConversion::dateFromString ( str );
+ return OPimDateConversion::dateFromString ( str );
else
@@ -1200,3 +1200,3 @@ QDate OContact::anniversary() const
-void OContact::insertEmail( const QString &v )
+void OPimContact::insertEmail( const QString &v )
{
@@ -1224,3 +1224,3 @@ void OContact::insertEmail( const QString &v )
- void OContact::removeEmail( const QString &v )
+ void OPimContact::removeEmail( const QString &v )
{
@@ -1254,3 +1254,3 @@ void OContact::insertEmail( const QString &v )
-void OContact::clearEmails()
+void OPimContact::clearEmails()
{
@@ -1261,3 +1261,3 @@ void OContact::clearEmails()
-void OContact::setDefaultEmail( const QString &v )
+void OPimContact::setDefaultEmail( const QString &v )
{
@@ -1265,3 +1265,3 @@ void OContact::setDefaultEmail( const QString &v )
- //qDebug("OContact::setDefaultEmail %s", e.latin1());
+ //qDebug("OPimContact::setDefaultEmail %s", e.latin1());
replace( Qtopia::DefaultEmail, e );
@@ -1274,3 +1274,3 @@ void OContact::setDefaultEmail( const QString &v )
-void OContact::insertEmails( const QStringList &v )
+void OPimContact::insertEmails( const QStringList &v )
{
@@ -1281,3 +1281,3 @@ void OContact::insertEmails( const QStringList &v )
-int OContact::rtti()
+int OPimContact::rtti()
{
@@ -1287,3 +1287,3 @@ int OContact::rtti()
-void OContact::setUid( int i )
+void OPimContact::setUid( int i )
{
diff --git a/libopie2/opiepim/ocontact.h b/libopie2/opiepim/core/opimcontact.h
index 445fd7d..c08f7ed 100644
--- a/libopie2/opiepim/ocontact.h
+++ b/libopie2/opiepim/core/opimcontact.h
@@ -48,6 +48,6 @@ namespace Opie
{
-class OContactPrivate;
+class OPimContactPrivate;
/**
- * OContact class represents a specialised PIM Record for contacts.
+ * OPimContact class represents a specialised PIM Record for contacts.
* It does store all kind of persopn related information.
@@ -57,3 +57,3 @@ class OContactPrivate;
*/
-class QPC_EXPORT OContact : public OPimRecord
+class QPC_EXPORT OPimContact : public OPimRecord
{
@@ -62,5 +62,5 @@ class QPC_EXPORT OContact : public OPimRecord
public:
- OContact();
- OContact( const QMap<int, QString> &fromMap );
- virtual ~OContact();
+ OPimContact();
+ OPimContact( const QMap<int, QString> &fromMap );
+ virtual ~OPimContact();
@@ -234,3 +234,3 @@ class QPC_EXPORT OContact : public OPimRecord
// The XML Backend needs some access to the private functions
- friend class OContactAccessBackend_XML;
+ friend class OPimContactAccessBackend_XML;
@@ -250,3 +250,3 @@ class QPC_EXPORT OContact : public OPimRecord
QMap<int, QString> mMap;
- OContactPrivate *d;
+ OPimContactPrivate *d;
};
diff --git a/libopie2/opiepim/ocontactfields.cpp b/libopie2/opiepim/core/opimcontactfields.cpp
index bec00f7..4b0ba3b 100644
--- a/libopie2/opiepim/ocontactfields.cpp
+++ b/libopie2/opiepim/core/opimcontactfields.cpp
@@ -29,6 +29,6 @@
-#include "ocontactfields.h"
+#include "opimcontactfields.h"
/* OPIE */
-#include <opie2/ocontact.h>
+#include <opie2/opimcontact.h>
#include <qpe/recordfields.h> // We should use our own enum in the future ..
@@ -47,3 +47,3 @@ namespace Opie
*/
-QStringList OContactFields::personalfields( bool sorted, bool translated )
+QStringList OPimContactFields::personalfields( bool sorted, bool translated )
{
@@ -81,3 +81,3 @@ QStringList OContactFields::personalfields( bool sorted, bool translated )
*/
-QStringList OContactFields::detailsfields( bool sorted, bool translated )
+QStringList OPimContactFields::detailsfields( bool sorted, bool translated )
{
@@ -110,3 +110,3 @@ QStringList OContactFields::detailsfields( bool sorted, bool translated )
*/
-QStringList OContactFields::phonefields( bool sorted, bool translated )
+QStringList OPimContactFields::phonefields( bool sorted, bool translated )
{
@@ -143,3 +143,3 @@ QStringList OContactFields::phonefields( bool sorted, bool translated )
*/
-QStringList OContactFields::fields( bool sorted, bool translated )
+QStringList OPimContactFields::fields( bool sorted, bool translated )
{
@@ -180,3 +180,3 @@ QStringList OContactFields::fields( bool sorted, bool translated )
*/
-QStringList OContactFields::untrpersonalfields( bool sorted )
+QStringList OPimContactFields::untrpersonalfields( bool sorted )
{
@@ -190,3 +190,3 @@ QStringList OContactFields::untrpersonalfields( bool sorted )
*/
-QStringList OContactFields::trpersonalfields( bool sorted )
+QStringList OPimContactFields::trpersonalfields( bool sorted )
{
@@ -200,3 +200,3 @@ QStringList OContactFields::trpersonalfields( bool sorted )
*/
-QStringList OContactFields::untrdetailsfields( bool sorted )
+QStringList OPimContactFields::untrdetailsfields( bool sorted )
{
@@ -210,3 +210,3 @@ QStringList OContactFields::untrdetailsfields( bool sorted )
*/
-QStringList OContactFields::trdetailsfields( bool sorted )
+QStringList OPimContactFields::trdetailsfields( bool sorted )
{
@@ -220,3 +220,3 @@ QStringList OContactFields::trdetailsfields( bool sorted )
*/
-QStringList OContactFields::trphonefields( bool sorted )
+QStringList OPimContactFields::trphonefields( bool sorted )
{
@@ -229,3 +229,3 @@ QStringList OContactFields::trphonefields( bool sorted )
*/
-QStringList OContactFields::untrphonefields( bool sorted )
+QStringList OPimContactFields::untrphonefields( bool sorted )
{
@@ -239,3 +239,3 @@ QStringList OContactFields::untrphonefields( bool sorted )
*/
-QStringList OContactFields::trfields( bool sorted )
+QStringList OPimContactFields::trfields( bool sorted )
{
@@ -248,3 +248,3 @@ QStringList OContactFields::trfields( bool sorted )
*/
-QStringList OContactFields::untrfields( bool sorted )
+QStringList OPimContactFields::untrfields( bool sorted )
{
@@ -253,3 +253,3 @@ QStringList OContactFields::untrfields( bool sorted )
-QMap<int, QString> OContactFields::idToTrFields()
+QMap<int, QString> OPimContactFields::idToTrFields()
{
@@ -319,3 +319,3 @@ QMap<int, QString> OContactFields::idToTrFields()
-QMap<int, QString> OContactFields::idToUntrFields()
+QMap<int, QString> OPimContactFields::idToUntrFields()
{
@@ -386,3 +386,3 @@ QMap<int, QString> OContactFields::idToUntrFields()
-QMap<QString, int> OContactFields::trFieldsToId()
+QMap<QString, int> OPimContactFields::trFieldsToId()
{
@@ -402,3 +402,3 @@ QMap<QString, int> OContactFields::trFieldsToId()
-QMap<QString, int> OContactFields::untrFieldsToId()
+QMap<QString, int> OPimContactFields::untrFieldsToId()
{
@@ -417,3 +417,3 @@ QMap<QString, int> OContactFields::untrFieldsToId()
-OContactFields::OContactFields() :
+OPimContactFields::OPimContactFields() :
fieldOrder( DEFAULT_FIELD_ORDER ),
@@ -428,3 +428,3 @@ OContactFields::OContactFields() :
-OContactFields::~OContactFields()
+OPimContactFields::~OPimContactFields()
{
@@ -443,3 +443,3 @@ OContactFields::~OContactFields()
-void OContactFields::saveToRecord( OContact &cnt )
+void OPimContactFields::saveToRecord( OPimContact &cnt )
{
@@ -456,3 +456,3 @@ void OContactFields::saveToRecord( OContact &cnt )
-void OContactFields::loadFromRecord( const OContact &cnt )
+void OPimContactFields::loadFromRecord( const OPimContact &cnt )
{
@@ -477,3 +477,3 @@ void OContactFields::loadFromRecord( const OContact &cnt )
-void OContactFields::setFieldOrder( int num, int index )
+void OPimContactFields::setFieldOrder( int num, int index )
{
@@ -491,3 +491,3 @@ void OContactFields::setFieldOrder( int num, int index )
-int OContactFields::getFieldOrder( int num, int defIndex )
+int OPimContactFields::getFieldOrder( int num, int defIndex )
{
diff --git a/libopie2/opiepim/ocontactfields.h b/libopie2/opiepim/core/opimcontactfields.h
index 9e89532..3aa3894 100644
--- a/libopie2/opiepim/ocontactfields.h
+++ b/libopie2/opiepim/core/opimcontactfields.h
@@ -35,3 +35,3 @@ class QStringList;
/* OPIE */
-#include <opie2/ocontact.h>
+#include <opie2/opimcontact.h>
@@ -46,3 +46,3 @@ namespace Opie
{
-class OContactFields
+class OPimContactFields
{
@@ -50,4 +50,4 @@ class OContactFields
public:
- OContactFields();
- ~OContactFields();
+ OPimContactFields();
+ ~OPimContactFields();
/** Set the index for combo boxes.
@@ -70,5 +70,5 @@ class OContactFields
/** Store fieldorder to contact. */
- void saveToRecord( OContact& );
+ void saveToRecord( OPimContact& );
/** Get Fieldorder from contact. */
- void loadFromRecord( const OContact& );
+ void loadFromRecord( const OPimContact& );
diff --git a/libopie2/opiepim/core/oconversion.cpp b/libopie2/opiepim/core/opimdateconversion.cpp
index 160c2c6..8bf891b 100644
--- a/libopie2/opiepim/core/oconversion.cpp
+++ b/libopie2/opiepim/core/opimdateconversion.cpp
@@ -29,3 +29,3 @@ _;:, .> :=|. This program is free software; you can
/* OPIE */
-#include <opie2/oconversion.h>
+#include <opie2/opimdateconversion.h>
#include <qpe/timeconversion.h>
@@ -35,3 +35,3 @@ namespace Opie
-QString OConversion::dateToString( const QDate &d )
+QString OPimDateConversion::dateToString( const QDate &d )
{
@@ -54,3 +54,3 @@ QString OConversion::dateToString( const QDate &d )
-QDate OConversion::dateFromString( const QString& s )
+QDate OPimDateConversion::dateFromString( const QString& s )
{
@@ -101,3 +101,3 @@ QDate OConversion::dateFromString( const QString& s )
-QString OConversion::dateTimeToString( const QDateTime& dt )
+QString OPimDateConversion::dateTimeToString( const QDateTime& dt )
{
@@ -124,3 +124,3 @@ QString OConversion::dateTimeToString( const QDateTime& dt )
-QDateTime OConversion::dateTimeFromString( const QString& str )
+QDateTime OPimDateConversion::dateTimeFromString( const QString& str )
{
diff --git a/libopie2/opiepim/core/oconversion.h b/libopie2/opiepim/core/opimdateconversion.h
index eeb97e5..45536da 100644
--- a/libopie2/opiepim/core/oconversion.h
+++ b/libopie2/opiepim/core/opimdateconversion.h
@@ -37,3 +37,3 @@ namespace Opie {
-class OConversion
+class OPimDateConversion
{
diff --git a/libopie2/opiepim/oevent.cpp b/libopie2/opiepim/core/opimevent.cpp
index d9cee2b..3ddbf85 100644
--- a/libopie2/opiepim/oevent.cpp
+++ b/libopie2/opiepim/core/opimevent.cpp
@@ -29,6 +29,6 @@
-#include "oevent.h"
+#include "opimevent.h"
/* OPIE */
-#include <opie2/orecur.h>
+#include <opie2/opimrecurrence.h>
#include <opie2/opimresolver.h>
@@ -72,4 +72,4 @@ int OCalendarHelper::dayOfWeek( char day )
int dayOfWeek = 1;
- char i = ORecur::MON;
- while ( !( i & day ) && i <= ORecur::SUN )
+ char i = OPimRecurrence::MON;
+ while ( !( i & day ) && i <= OPimRecurrence::SUN )
{
@@ -89,3 +89,3 @@ int OCalendarHelper::monthDiff( const QDate& first, const QDate& second )
-struct OEvent::Data : public QShared
+struct OPimEvent::Data : public QShared
{
@@ -107,3 +107,3 @@ struct OEvent::Data : public QShared
OPimNotifyManager* manager;
- ORecur* recur;
+ OPimRecurrence* recur;
QString note;
@@ -119,3 +119,3 @@ bool isAllDay : 1;
-OEvent::OEvent( int uid )
+OPimEvent::OPimEvent( int uid )
: OPimRecord( uid )
@@ -126,3 +126,3 @@ OEvent::OEvent( int uid )
-OEvent::OEvent( const OEvent& ev )
+OPimEvent::OPimEvent( const OPimEvent& ev )
: OPimRecord( ev ), data( ev.data )
@@ -133,3 +133,3 @@ OEvent::OEvent( const OEvent& ev )
-OEvent::OEvent( const QMap<int, QString> map )
+OPimEvent::OPimEvent( const QMap<int, QString> map )
: OPimRecord( 0 )
@@ -142,3 +142,3 @@ OEvent::OEvent( const QMap<int, QString> map )
-OEvent::~OEvent()
+OPimEvent::~OPimEvent()
{
@@ -152,3 +152,3 @@ OEvent::~OEvent()
-OEvent& OEvent::operator=( const OEvent& ev )
+OPimEvent& OPimEvent::operator=( const OPimEvent& ev )
{
@@ -166,3 +166,3 @@ OEvent& OEvent::operator=( const OEvent& ev )
-QString OEvent::description() const
+QString OPimEvent::description() const
{
@@ -172,3 +172,3 @@ QString OEvent::description() const
-void OEvent::setDescription( const QString& description )
+void OPimEvent::setDescription( const QString& description )
{
@@ -179,3 +179,3 @@ void OEvent::setDescription( const QString& description )
-void OEvent::setLocation( const QString& loc )
+void OPimEvent::setLocation( const QString& loc )
{
@@ -186,3 +186,3 @@ void OEvent::setLocation( const QString& loc )
-QString OEvent::location() const
+QString OPimEvent::location() const
{
@@ -192,3 +192,3 @@ QString OEvent::location() const
-OPimNotifyManager &OEvent::notifiers() const
+OPimNotifyManager &OPimEvent::notifiers() const
{
@@ -204,3 +204,3 @@ OPimNotifyManager &OEvent::notifiers() const
-bool OEvent::hasNotifiers() const
+bool OPimEvent::hasNotifiers() const
{
@@ -216,6 +216,6 @@ bool OEvent::hasNotifiers() const
-ORecur OEvent::recurrence() const
+OPimRecurrence OPimEvent::recurrence() const
{
if ( !data->recur )
- data->recur = new ORecur;
+ data->recur = new OPimRecurrence;
@@ -225,3 +225,3 @@ ORecur OEvent::recurrence() const
-void OEvent::setRecurrence( const ORecur& rec )
+void OPimEvent::setRecurrence( const OPimRecurrence& rec )
{
@@ -231,3 +231,3 @@ void OEvent::setRecurrence( const ORecur& rec )
else
- data->recur = new ORecur( rec );
+ data->recur = new OPimRecurrence( rec );
}
@@ -235,3 +235,3 @@ void OEvent::setRecurrence( const ORecur& rec )
-bool OEvent::hasRecurrence() const
+bool OPimEvent::hasRecurrence() const
{
@@ -242,3 +242,3 @@ bool OEvent::hasRecurrence() const
-QString OEvent::note() const
+QString OPimEvent::note() const
{
@@ -248,3 +248,3 @@ QString OEvent::note() const
-void OEvent::setNote( const QString& note )
+void OPimEvent::setNote( const QString& note )
{
@@ -255,3 +255,3 @@ void OEvent::setNote( const QString& note )
-QDateTime OEvent::createdDateTime() const
+QDateTime OPimEvent::createdDateTime() const
{
@@ -261,3 +261,3 @@ QDateTime OEvent::createdDateTime() const
-void OEvent::setCreatedDateTime( const QDateTime& time )
+void OPimEvent::setCreatedDateTime( const QDateTime& time )
{
@@ -268,3 +268,3 @@ void OEvent::setCreatedDateTime( const QDateTime& time )
-QDateTime OEvent::startDateTime() const
+QDateTime OPimEvent::startDateTime() const
{
@@ -276,9 +276,9 @@ QDateTime OEvent::startDateTime() const
-QDateTime OEvent::startDateTimeInZone() const
+QDateTime OPimEvent::startDateTimeInZone() const
{
/* if no timezone, or all day event or if the current and this timeZone match... */
- if ( data->timezone.isEmpty() || data->isAllDay || data->timezone == OTimeZone::current().timeZone() ) return startDateTime();
+ if ( data->timezone.isEmpty() || data->isAllDay || data->timezone == OPimTimeZone::current().timeZone() ) return startDateTime();
- OTimeZone zone( data->timezone );
- return zone.toDateTime( data->start, OTimeZone::current() );
+ OPimTimeZone zone( data->timezone );
+ return zone.toDateTime( data->start, OPimTimeZone::current() );
}
@@ -286,3 +286,3 @@ QDateTime OEvent::startDateTimeInZone() const
-void OEvent::setStartDateTime( const QDateTime& dt )
+void OPimEvent::setStartDateTime( const QDateTime& dt )
{
@@ -293,3 +293,3 @@ void OEvent::setStartDateTime( const QDateTime& dt )
-QDateTime OEvent::endDateTime() const
+QDateTime OPimEvent::endDateTime() const
{
@@ -305,9 +305,9 @@ QDateTime OEvent::endDateTime() const
-QDateTime OEvent::endDateTimeInZone() const
+QDateTime OPimEvent::endDateTimeInZone() const
{
/* if no timezone, or all day event or if the current and this timeZone match... */
- if ( data->timezone.isEmpty() || data->isAllDay || data->timezone == OTimeZone::current().timeZone() ) return endDateTime();
+ if ( data->timezone.isEmpty() || data->isAllDay || data->timezone == OPimTimeZone::current().timeZone() ) return endDateTime();
- OTimeZone zone( data->timezone );
- return zone.toDateTime( data->end, OTimeZone::current() );
+ OPimTimeZone zone( data->timezone );
+ return zone.toDateTime( data->end, OPimTimeZone::current() );
}
@@ -315,3 +315,3 @@ QDateTime OEvent::endDateTimeInZone() const
-void OEvent::setEndDateTime( const QDateTime& dt )
+void OPimEvent::setEndDateTime( const QDateTime& dt )
{
@@ -322,3 +322,3 @@ void OEvent::setEndDateTime( const QDateTime& dt )
-bool OEvent::isMultipleDay() const
+bool OPimEvent::isMultipleDay() const
{
@@ -328,3 +328,3 @@ bool OEvent::isMultipleDay() const
-bool OEvent::isAllDay() const
+bool OPimEvent::isAllDay() const
{
@@ -334,3 +334,3 @@ bool OEvent::isAllDay() const
-void OEvent::setAllDay( bool allDay )
+void OPimEvent::setAllDay( bool allDay )
{
@@ -342,3 +342,3 @@ void OEvent::setAllDay( bool allDay )
-void OEvent::setTimeZone( const QString& tz )
+void OPimEvent::setTimeZone( const QString& tz )
{
@@ -349,3 +349,3 @@ void OEvent::setTimeZone( const QString& tz )
-QString OEvent::timeZone() const
+QString OPimEvent::timeZone() const
{
@@ -356,3 +356,3 @@ QString OEvent::timeZone() const
-bool OEvent::match( const QRegExp& re ) const
+bool OPimEvent::match( const QRegExp& re ) const
{
@@ -387,3 +387,3 @@ bool OEvent::match( const QRegExp& re ) const
-QString OEvent::toRichText() const
+QString OPimEvent::toRichText() const
{
@@ -456,3 +456,3 @@ QString OEvent::toRichText() const
-QString OEvent::toShortText() const
+QString OPimEvent::toShortText() const
{
@@ -474,5 +474,5 @@ QString OEvent::toShortText() const
-QString OEvent::type() const
+QString OPimEvent::type() const
{
- return QString::fromLatin1( "OEvent" );
+ return QString::fromLatin1( "OPimEvent" );
}
@@ -480,3 +480,3 @@ QString OEvent::type() const
-QString OEvent::recordField( int /*id */ ) const
+QString OPimEvent::recordField( int /*id */ ) const
{
@@ -486,3 +486,3 @@ QString OEvent::recordField( int /*id */ ) const
-int OEvent::rtti()
+int OPimEvent::rtti()
{
@@ -492,3 +492,3 @@ int OEvent::rtti()
-bool OEvent::loadFromStream( QDataStream& )
+bool OPimEvent::loadFromStream( QDataStream& )
{
@@ -498,3 +498,3 @@ bool OEvent::loadFromStream( QDataStream& )
-bool OEvent::saveToStream( QDataStream& ) const
+bool OPimEvent::saveToStream( QDataStream& ) const
{
@@ -504,3 +504,3 @@ bool OEvent::saveToStream( QDataStream& ) const
-void OEvent::changeOrModify()
+void OPimEvent::changeOrModify()
{
@@ -517,3 +517,3 @@ void OEvent::changeOrModify()
if ( data->recur )
- d2->recur = new ORecur( *data->recur );
+ d2->recur = new OPimRecurrence( *data->recur );
@@ -538,3 +538,3 @@ void OEvent::changeOrModify()
-void OEvent::deref()
+void OPimEvent::deref()
{
@@ -551,3 +551,3 @@ void OEvent::deref()
// Encoding should happen at one place, only ! (eilers)
-QMap<int, QString> OEvent::toMap() const
+QMap<int, QString> OPimEvent::toMap() const
{
@@ -555,18 +555,18 @@ QMap<int, QString> OEvent::toMap() const
- retMap.insert( OEvent::FUid, QString::number( uid() ) );
- retMap.insert( OEvent::FCategories, Qtopia::escapeString( Qtopia::Record::idsToString( categories() ) ) );
- retMap.insert( OEvent::FDescription, Qtopia::escapeString( description() ) );
- retMap.insert( OEvent::FLocation, Qtopia::escapeString( location() ) );
- retMap.insert( OEvent::FType, isAllDay() ? "AllDay" : "" );
+ retMap.insert( OPimEvent::FUid, QString::number( uid() ) );
+ retMap.insert( OPimEvent::FCategories, Qtopia::escapeString( Qtopia::Record::idsToString( categories() ) ) );
+ retMap.insert( OPimEvent::FDescription, Qtopia::escapeString( description() ) );
+ retMap.insert( OPimEvent::FLocation, Qtopia::escapeString( location() ) );
+ retMap.insert( OPimEvent::FType, isAllDay() ? "AllDay" : "" );
OPimAlarm alarm = notifiers().alarms() [ 0 ];
- retMap.insert( OEvent::FAlarm, QString::number( alarm.dateTime().secsTo( startDateTime() ) / 60 ) );
- retMap.insert( OEvent::FSound, ( alarm.sound() == OPimAlarm::Loud ) ? "loud" : "silent" );
-
- OTimeZone zone( timeZone().isEmpty() ? OTimeZone::current() : timeZone() );
- retMap.insert( OEvent::FStart, QString::number( zone.fromUTCDateTime( zone.toDateTime( startDateTime(), OTimeZone::utc() ) ) ) );
- retMap.insert( OEvent::FEnd, QString::number( zone.fromUTCDateTime( zone.toDateTime( endDateTime(), OTimeZone::utc() ) ) ) );
- retMap.insert( OEvent::FNote, Qtopia::escapeString( note() ) );
- retMap.insert( OEvent::FTimeZone, timeZone().isEmpty() ? QString( "None" ) : timeZone() );
+ retMap.insert( OPimEvent::FAlarm, QString::number( alarm.dateTime().secsTo( startDateTime() ) / 60 ) );
+ retMap.insert( OPimEvent::FSound, ( alarm.sound() == OPimAlarm::Loud ) ? "loud" : "silent" );
+
+ OPimTimeZone zone( timeZone().isEmpty() ? OPimTimeZone::current() : timeZone() );
+ retMap.insert( OPimEvent::FStart, QString::number( zone.fromUTCDateTime( zone.toDateTime( startDateTime(), OPimTimeZone::utc() ) ) ) );
+ retMap.insert( OPimEvent::FEnd, QString::number( zone.fromUTCDateTime( zone.toDateTime( endDateTime(), OPimTimeZone::utc() ) ) ) );
+ retMap.insert( OPimEvent::FNote, Qtopia::escapeString( note() ) );
+ retMap.insert( OPimEvent::FTimeZone, timeZone().isEmpty() ? QString( "None" ) : timeZone() );
if ( parent() )
- retMap.insert( OEvent::FRecParent, QString::number( parent() ) );
+ retMap.insert( OPimEvent::FRecParent, QString::number( parent() ) );
if ( children().count() )
@@ -580,3 +580,3 @@ QMap<int, QString> OEvent::toMap() const
}
- retMap.insert( OEvent::FRecChildren, buf );
+ retMap.insert( OPimEvent::FRecChildren, buf );
}
@@ -586,12 +586,12 @@ QMap<int, QString> OEvent::toMap() const
{
- ORecur recur = recurrence();
+ OPimRecurrence recur = recurrence();
QMap<int, QString> recFields = recur.toMap();
- retMap.insert( OEvent::FRType, recFields[ ORecur::RType ] );
- retMap.insert( OEvent::FRWeekdays, recFields[ ORecur::RWeekdays ] );
- retMap.insert( OEvent::FRPosition, recFields[ ORecur::RPosition ] );
- retMap.insert( OEvent::FRFreq, recFields[ ORecur::RFreq ] );
- retMap.insert( OEvent::FRHasEndDate, recFields[ ORecur::RHasEndDate ] );
- retMap.insert( OEvent::FREndDate, recFields[ ORecur::EndDate ] );
- retMap.insert( OEvent::FRCreated, recFields[ ORecur::Created ] );
- retMap.insert( OEvent::FRExceptions, recFields[ ORecur::Exceptions ] );
+ retMap.insert( OPimEvent::FRType, recFields[ OPimRecurrence::RType ] );
+ retMap.insert( OPimEvent::FRWeekdays, recFields[ OPimRecurrence::RWeekdays ] );
+ retMap.insert( OPimEvent::FRPosition, recFields[ OPimRecurrence::RPosition ] );
+ retMap.insert( OPimEvent::FRFreq, recFields[ OPimRecurrence::RFreq ] );
+ retMap.insert( OPimEvent::FRHasEndDate, recFields[ OPimRecurrence::RHasEndDate ] );
+ retMap.insert( OPimEvent::FREndDate, recFields[ OPimRecurrence::EndDate ] );
+ retMap.insert( OPimEvent::FRCreated, recFields[ OPimRecurrence::Created ] );
+ retMap.insert( OPimEvent::FRExceptions, recFields[ OPimRecurrence::Exceptions ] );
}
@@ -599,5 +599,5 @@ QMap<int, QString> OEvent::toMap() const
{
- ORecur recur = recurrence();
+ OPimRecurrence recur = recurrence();
QMap<int, QString> recFields = recur.toMap();
- retMap.insert( OEvent::FRType, recFields[ ORecur::RType ] );
+ retMap.insert( OPimEvent::FRType, recFields[ OPimRecurrence::RType ] );
}
@@ -608,3 +608,3 @@ QMap<int, QString> OEvent::toMap() const
-void OEvent::fromMap( const QMap<int, QString>& map )
+void OPimEvent::fromMap( const QMap<int, QString>& map )
{
@@ -612,10 +612,10 @@ void OEvent::fromMap( const QMap<int, QString>& map )
// We just want to set the UID if it is really stored.
- if ( !map[ OEvent::FUid ].isEmpty() )
- setUid( map[ OEvent::FUid ].toInt() );
+ if ( !map[ OPimEvent::FUid ].isEmpty() )
+ setUid( map[ OPimEvent::FUid ].toInt() );
- setCategories( idsFromString( map[ OEvent::FCategories ] ) );
- setDescription( map[ OEvent::FDescription ] );
- setLocation( map[ OEvent::FLocation ] );
+ setCategories( idsFromString( map[ OPimEvent::FCategories ] ) );
+ setDescription( map[ OPimEvent::FDescription ] );
+ setLocation( map[ OPimEvent::FLocation ] );
- if ( map[ OEvent::FType ] == "AllDay" )
+ if ( map[ OPimEvent::FType ] == "AllDay" )
setAllDay( true );
@@ -625,6 +625,6 @@ void OEvent::fromMap( const QMap<int, QString>& map )
int alarmTime = -1;
- if ( !map[ OEvent::FAlarm ].isEmpty() )
- alarmTime = map[ OEvent::FAlarm ].toInt();
+ if ( !map[ OPimEvent::FAlarm ].isEmpty() )
+ alarmTime = map[ OPimEvent::FAlarm ].toInt();
- int sound = ( ( map[ OEvent::FSound ] == "loud" ) ? OPimAlarm::Loud : OPimAlarm::Silent );
+ int sound = ( ( map[ OPimEvent::FSound ] == "loud" ) ? OPimAlarm::Loud : OPimAlarm::Silent );
if ( ( alarmTime != -1 ) )
@@ -635,9 +635,9 @@ void OEvent::fromMap( const QMap<int, QString>& map )
}
- if ( !map[ OEvent::FTimeZone ].isEmpty() && ( map[ OEvent::FTimeZone ] != "None" ) )
+ if ( !map[ OPimEvent::FTimeZone ].isEmpty() && ( map[ OPimEvent::FTimeZone ] != "None" ) )
{
- setTimeZone( map[ OEvent::FTimeZone ] );
+ setTimeZone( map[ OPimEvent::FTimeZone ] );
}
- time_t start = ( time_t ) map[ OEvent::FStart ].toLong();
- time_t end = ( time_t ) map[ OEvent::FEnd ].toLong();
+ time_t start = ( time_t ) map[ OPimEvent::FStart ].toLong();
+ time_t end = ( time_t ) map[ OPimEvent::FEnd ].toLong();
@@ -646,3 +646,3 @@ void OEvent::fromMap( const QMap<int, QString>& map )
{
- OTimeZone utc = OTimeZone::utc();
+ OPimTimeZone utc = OPimTimeZone::utc();
setStartDateTime( utc.fromUTCDateTime( start ) );
@@ -655,17 +655,17 @@ void OEvent::fromMap( const QMap<int, QString>& map )
// qWarning(" Start is %d", start );
- OTimeZone zone( timeZone().isEmpty() ? OTimeZone::current() : timeZone() );
+ OPimTimeZone zone( timeZone().isEmpty() ? OPimTimeZone::current() : timeZone() );
QDateTime date = zone.toDateTime( start );
qWarning( " Start is %s", date.toString().latin1() );
- setStartDateTime( zone.toDateTime( date, OTimeZone::current() ) );
+ setStartDateTime( zone.toDateTime( date, OPimTimeZone::current() ) );
date = zone.toDateTime( end );
- setEndDateTime ( zone.toDateTime( date, OTimeZone::current() ) );
+ setEndDateTime ( zone.toDateTime( date, OPimTimeZone::current() ) );
}
- if ( !map[ OEvent::FRecParent ].isEmpty() )
- setParent( map[ OEvent::FRecParent ].toInt() );
+ if ( !map[ OPimEvent::FRecParent ].isEmpty() )
+ setParent( map[ OPimEvent::FRecParent ].toInt() );
- if ( !map[ OEvent::FRecChildren ].isEmpty() )
+ if ( !map[ OPimEvent::FRecChildren ].isEmpty() )
{
- QStringList list = QStringList::split( ' ', map[ OEvent::FRecChildren ] );
+ QStringList list = QStringList::split( ' ', map[ OPimEvent::FRecChildren ] );
for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it )
@@ -676,15 +676,15 @@ void OEvent::fromMap( const QMap<int, QString>& map )
- // Fill recurrence stuff and put it directly into the ORecur-Object using fromMap..
- if ( !map[ OEvent::FRType ].isEmpty() )
+ // Fill recurrence stuff and put it directly into the OPimRecurrence-Object using fromMap..
+ if ( !map[ OPimEvent::FRType ].isEmpty() )
{
QMap<int, QString> recFields;
- recFields.insert( ORecur::RType, map[ OEvent::FRType ] );
- recFields.insert( ORecur::RWeekdays, map[ OEvent::FRWeekdays ] );
- recFields.insert( ORecur::RPosition, map[ OEvent::FRPosition ] );
- recFields.insert( ORecur::RFreq, map[ OEvent::FRFreq ] );
- recFields.insert( ORecur::RHasEndDate, map[ OEvent::FRHasEndDate ] );
- recFields.insert( ORecur::EndDate, map[ OEvent::FREndDate ] );
- recFields.insert( ORecur::Created, map[ OEvent::FRCreated ] );
- recFields.insert( ORecur::Exceptions, map[ OEvent::FRExceptions ] );
- ORecur recur( recFields );
+ recFields.insert( OPimRecurrence::RType, map[ OPimEvent::FRType ] );
+ recFields.insert( OPimRecurrence::RWeekdays, map[ OPimEvent::FRWeekdays ] );
+ recFields.insert( OPimRecurrence::RPosition, map[ OPimEvent::FRPosition ] );
+ recFields.insert( OPimRecurrence::RFreq, map[ OPimEvent::FRFreq ] );
+ recFields.insert( OPimRecurrence::RHasEndDate, map[ OPimEvent::FRHasEndDate ] );
+ recFields.insert( OPimRecurrence::EndDate, map[ OPimEvent::FREndDate ] );
+ recFields.insert( OPimRecurrence::Created, map[ OPimEvent::FRCreated ] );
+ recFields.insert( OPimRecurrence::Exceptions, map[ OPimEvent::FRExceptions ] );
+ OPimRecurrence recur( recFields );
setRecurrence( recur );
@@ -695,3 +695,3 @@ void OEvent::fromMap( const QMap<int, QString>& map )
-int OEvent::parent() const
+int OPimEvent::parent() const
{
@@ -701,3 +701,3 @@ int OEvent::parent() const
-void OEvent::setParent( int uid )
+void OPimEvent::setParent( int uid )
{
@@ -708,3 +708,3 @@ void OEvent::setParent( int uid )
-QArray<int> OEvent::children() const
+QArray<int> OPimEvent::children() const
{
@@ -716,3 +716,3 @@ QArray<int> OEvent::children() const
-void OEvent::setChildren( const QArray<int>& arr )
+void OPimEvent::setChildren( const QArray<int>& arr )
{
@@ -726,3 +726,3 @@ void OEvent::setChildren( const QArray<int>& arr )
-void OEvent::addChild( int uid )
+void OPimEvent::addChild( int uid )
{
@@ -743,3 +743,3 @@ void OEvent::addChild( int uid )
-void OEvent::removeChild( int uid )
+void OPimEvent::removeChild( int uid )
{
@@ -766,3 +766,3 @@ struct OEffectiveEvent::Data : public QShared
{}
- OEvent event;
+ OPimEvent event;
QDate date;
@@ -783,3 +783,3 @@ OEffectiveEvent::OEffectiveEvent()
-OEffectiveEvent::OEffectiveEvent( const OEvent& ev, const QDate& startDate,
+OEffectiveEvent::OEffectiveEvent( const OPimEvent& ev, const QDate& startDate,
Position pos )
@@ -846,3 +846,3 @@ void OEffectiveEvent::setEndTime( const QTime& en )
-void OEffectiveEvent::setEvent( const OEvent& ev )
+void OEffectiveEvent::setEvent( const OPimEvent& ev )
{
@@ -892,3 +892,3 @@ QString OEffectiveEvent::note() const
-OEvent OEffectiveEvent::event() const
+OPimEvent OEffectiveEvent::event() const
{
diff --git a/libopie2/opiepim/oevent.h b/libopie2/opiepim/core/opimevent.h
index dc5e4d6..949f263 100644
--- a/libopie2/opiepim/oevent.h
+++ b/libopie2/opiepim/core/opimevent.h
@@ -34,3 +34,3 @@
/* OPIE */
-#include <opie2/otimezone.h>
+#include <opie2/opimtimezone.h>
#include <opie2/opimrecord.h>
@@ -63,3 +63,3 @@ struct OCalendarHelper
class OPimNotifyManager;
-class ORecur;
+class OPimRecurrence;
@@ -70,6 +70,6 @@ class ORecur;
*/
-class OEvent : public OPimRecord
+class OPimEvent : public OPimRecord
{
public:
- typedef QValueList<OEvent> ValueList;
+ typedef QValueList<OPimEvent> ValueList;
/**
@@ -103,5 +103,5 @@ class OEvent : public OPimRecord
/**
- * Start with an Empty OEvent. UID == 0 means that it is empty
+ * Start with an Empty OPimEvent. UID == 0 means that it is empty
*/
- OEvent( int uid = 0 );
+ OPimEvent( int uid = 0 );
@@ -110,11 +110,11 @@ class OEvent : public OPimRecord
*/
- OEvent( const OEvent& );
+ OPimEvent( const OPimEvent& );
/**
- * Create OEvent, initialized by map
+ * Create OPimEvent, initialized by map
* @see enum RecordFields
*/
- OEvent( const QMap<int, QString> map );
- ~OEvent();
- OEvent &operator=( const OEvent& );
+ OPimEvent( const QMap<int, QString> map );
+ ~OPimEvent();
+ OPimEvent &operator=( const OPimEvent& );
@@ -129,4 +129,4 @@ class OEvent : public OPimRecord
- ORecur recurrence() const;
- void setRecurrence( const ORecur& );
+ OPimRecurrence recurrence() const;
+ void setRecurrence( const OPimRecurrence& );
bool hasRecurrence() const;
@@ -171,3 +171,3 @@ class OEvent : public OPimRecord
- /** return the parent OEvent */
+ /** return the parent OPimEvent */
int parent() const;
@@ -190,8 +190,8 @@ class OEvent : public OPimRecord
- /* bool operator==( const OEvent& );
- bool operator!=( const OEvent& );
- bool operator<( const OEvent& );
- bool operator<=( const OEvent& );
- bool operator>( const OEvent& );
- bool operator>=(const OEvent& );
+ /* bool operator==( const OPimEvent& );
+ bool operator!=( const OPimEvent& );
+ bool operator<( const OPimEvent& );
+ bool operator<=( const OPimEvent& );
+ bool operator>( const OPimEvent& );
+ bool operator>=(const OPimEvent& );
*/
@@ -228,3 +228,3 @@ class OEffectiveEvent
OEffectiveEvent();
- OEffectiveEvent( const OEvent& event, const QDate& startDate, Position pos = StartEnd );
+ OEffectiveEvent( const OPimEvent& event, const QDate& startDate, Position pos = StartEnd );
OEffectiveEvent( const OEffectiveEvent& );
@@ -235,3 +235,3 @@ class OEffectiveEvent
void setEndTime( const QTime& );
- void setEvent( const OEvent& );
+ void setEvent( const OPimEvent& );
void setDate( const QDate& );
@@ -243,3 +243,3 @@ class OEffectiveEvent
QString note() const;
- OEvent event() const;
+ OPimEvent event() const;
QTime startTime() const;
diff --git a/libopie2/opiepim/core/opimnotify.h b/libopie2/opiepim/core/opimnotify.h
index d0e40ca..4f74d2e 100644
--- a/libopie2/opiepim/core/opimnotify.h
+++ b/libopie2/opiepim/core/opimnotify.h
@@ -140,3 +140,3 @@ class OPimAlarm : public OPimNotify
* Note that the returned dateTime() may be not valid.
- * In these cases one must resolve the uid and get the OEvent
+ * In these cases one must resolve the uid and get the OPimEvent
*/
diff --git a/libopie2/opiepim/core/opimnotifymanager.cpp b/libopie2/opiepim/core/opimnotifymanager.cpp
index a54d597..573340a 100644
--- a/libopie2/opiepim/core/opimnotifymanager.cpp
+++ b/libopie2/opiepim/core/opimnotifymanager.cpp
@@ -32,3 +32,3 @@
/* OPIE */
-#include <opie2/oconversion.h>
+#include <opie2/opimdateconversion.h>
@@ -186,3 +186,3 @@ QString OPimNotifyManager::alarmsToString() const
{
- als << OConversion::dateTimeToString( ( *it ).dateTime() )
+ als << OPimDateConversion::dateTimeToString( ( *it ).dateTime() )
+ ":" + QString::number( ( *it ).duration() )
@@ -229,4 +229,4 @@ void OPimNotifyManager::alarmsFromString( const QString& str )
qWarning( "alarm[0]: %s %s", alarm[ 0 ].latin1(),
- OConversion::dateTimeFromString( alarm[ 0 ] ).toString().latin1() );
- OPimAlarm al( alarm[ 2 ].toInt(), OConversion::dateTimeFromString( alarm[ 0 ] ),
+ OPimDateConversion::dateTimeFromString( alarm[ 0 ] ).toString().latin1() );
+ OPimAlarm al( alarm[ 2 ].toInt(), OPimDateConversion::dateTimeFromString( alarm[ 0 ] ),
alarm[ 1 ].toInt() );
diff --git a/libopie2/opiepim/orecordlist.h b/libopie2/opiepim/core/opimrecordlist.h
index 1742dcc..b23138d 100644
--- a/libopie2/opiepim/orecordlist.h
+++ b/libopie2/opiepim/core/opimrecordlist.h
@@ -33,3 +33,3 @@
/* OPIE */
-#include <opie2/otemplatebase.h>
+#include <opie2/opimtemplatebase.h>
#include <opie2/opimrecord.h>
@@ -42,3 +42,3 @@ namespace Opie
-class ORecordListIteratorPrivate;
+class OPimRecordListIteratorPrivate;
/**
@@ -50,7 +50,7 @@ class ORecordListIteratorPrivate;
*/
-template <class T> class ORecordList;
+template <class T> class OPimRecordList;
template <class T = OPimRecord>
-class ORecordListIterator
+class OPimRecordListIterator
{
- friend class ORecordList<T>;
+ friend class OPimRecordList<T>;
@@ -61,5 +61,5 @@ class ORecordListIterator
* The c'tor used internally from
- * ORecordList
+ * OPimRecordList
*/
- ORecordListIterator( const QArray<int>, const Base* );
+ OPimRecordListIterator( const QArray<int>, const Base* );
@@ -68,7 +68,7 @@ class ORecordListIterator
*/
- ORecordListIterator();
- ~ORecordListIterator();
+ OPimRecordListIterator();
+ ~OPimRecordListIterator();
- ORecordListIterator( const ORecordListIterator& );
- ORecordListIterator &operator=( const ORecordListIterator& );
+ OPimRecordListIterator( const OPimRecordListIterator& );
+ OPimRecordListIterator &operator=( const OPimRecordListIterator& );
@@ -79,7 +79,7 @@ class ORecordListIterator
T operator*();
- ORecordListIterator &operator++();
- ORecordListIterator &operator--();
+ OPimRecordListIterator &operator++();
+ OPimRecordListIterator &operator--();
- bool operator==( const ORecordListIterator& it );
- bool operator!=( const ORecordListIterator& it );
+ bool operator==( const OPimRecordListIterator& it );
+ bool operator!=( const OPimRecordListIterator& it );
@@ -109,3 +109,3 @@ class ORecordListIterator
/* d pointer for future versions */
- ORecordListIteratorPrivate *d;
+ OPimRecordListIteratorPrivate *d;
};
@@ -113,3 +113,3 @@ class ORecordListIterator
-class ORecordListPrivate;
+class OPimRecordListPrivate;
/**
@@ -119,3 +119,3 @@ class ORecordListPrivate;
template <class T = OPimRecord >
-class ORecordList
+class OPimRecordList
{
@@ -123,3 +123,3 @@ class ORecordList
typedef OTemplateBase<T> Base;
- typedef ORecordListIterator<T> Iterator;
+ typedef OPimRecordListIterator<T> Iterator;
@@ -128,7 +128,7 @@ class ORecordList
*/
- ORecordList ()
+ OPimRecordList ()
{}
- ORecordList( const QArray<int>& ids,
+ OPimRecordList( const QArray<int>& ids,
const Base* );
- ~ORecordList();
+ ~OPimRecordList();
@@ -164,3 +164,3 @@ class ORecordList
const Base* m_acc;
- ORecordListPrivate *d;
+ OPimRecordListPrivate *d;
};
@@ -170,3 +170,3 @@ class ORecordList
template <class T>
-ORecordListIterator<T>::ORecordListIterator()
+OPimRecordListIterator<T>::OPimRecordListIterator()
{
@@ -182,3 +182,3 @@ ORecordListIterator<T>::ORecordListIterator()
template <class T>
-ORecordListIterator<T>::~ORecordListIterator()
+OPimRecordListIterator<T>::~OPimRecordListIterator()
{
@@ -189,5 +189,5 @@ ORecordListIterator<T>::~ORecordListIterator()
template <class T>
-ORecordListIterator<T>::ORecordListIterator( const ORecordListIterator<T>& it )
+OPimRecordListIterator<T>::OPimRecordListIterator( const OPimRecordListIterator<T>& it )
{
- // qWarning("ORecordListIterator copy c'tor");
+ // qWarning("OPimRecordListIterator copy c'tor");
m_uids = it.m_uids;
@@ -202,3 +202,3 @@ ORecordListIterator<T>::ORecordListIterator( const ORecordListIterator<T>& it )
template <class T>
-ORecordListIterator<T> &ORecordListIterator<T>::operator=( const ORecordListIterator<T>& it )
+OPimRecordListIterator<T> &OPimRecordListIterator<T>::operator=( const OPimRecordListIterator<T>& it )
{
@@ -215,3 +215,3 @@ ORecordListIterator<T> &ORecordListIterator<T>::operator=( const ORecordListIter
template <class T>
-T ORecordListIterator<T>::operator*()
+T OPimRecordListIterator<T>::operator*()
{
@@ -230,3 +230,3 @@ T ORecordListIterator<T>::operator*()
template <class T>
-ORecordListIterator<T> &ORecordListIterator<T>::operator++()
+OPimRecordListIterator<T> &OPimRecordListIterator<T>::operator++()
{
@@ -246,3 +246,3 @@ ORecordListIterator<T> &ORecordListIterator<T>::operator++()
template <class T>
-ORecordListIterator<T> &ORecordListIterator<T>::operator--()
+OPimRecordListIterator<T> &OPimRecordListIterator<T>::operator--()
{
@@ -262,3 +262,3 @@ ORecordListIterator<T> &ORecordListIterator<T>::operator--()
template <class T>
-bool ORecordListIterator<T>::operator==( const ORecordListIterator<T>& it )
+bool OPimRecordListIterator<T>::operator==( const OPimRecordListIterator<T>& it )
{
@@ -277,3 +277,3 @@ bool ORecordListIterator<T>::operator==( const ORecordListIterator<T>& it )
template <class T>
-bool ORecordListIterator<T>::operator!=( const ORecordListIterator<T>& it )
+bool OPimRecordListIterator<T>::operator!=( const OPimRecordListIterator<T>& it )
{
@@ -284,3 +284,3 @@ bool ORecordListIterator<T>::operator!=( const ORecordListIterator<T>& it )
template <class T>
-ORecordListIterator<T>::ORecordListIterator( const QArray<int> uids,
+OPimRecordListIterator<T>::OPimRecordListIterator( const QArray<int> uids,
const Base* t )
@@ -296,3 +296,3 @@ ORecordListIterator<T>::ORecordListIterator( const QArray<int> uids,
template <class T>
-uint ORecordListIterator<T>::current() const
+uint OPimRecordListIterator<T>::current() const
{
@@ -303,3 +303,3 @@ uint ORecordListIterator<T>::current() const
template <class T>
-void ORecordListIterator<T>::setCurrent( uint cur )
+void OPimRecordListIterator<T>::setCurrent( uint cur )
{
@@ -312,3 +312,3 @@ void ORecordListIterator<T>::setCurrent( uint cur )
template <class T>
-uint ORecordListIterator<T>::count() const
+uint OPimRecordListIterator<T>::count() const
{
@@ -319,3 +319,3 @@ uint ORecordListIterator<T>::count() const
template <class T>
-ORecordList<T>::ORecordList( const QArray<int>& ids,
+OPimRecordList<T>::OPimRecordList( const QArray<int>& ids,
const Base* acc )
@@ -326,3 +326,3 @@ ORecordList<T>::ORecordList( const QArray<int>& ids,
template <class T>
-ORecordList<T>::~ORecordList()
+OPimRecordList<T>::~OPimRecordList()
{
@@ -333,3 +333,3 @@ ORecordList<T>::~ORecordList()
template <class T>
-typename ORecordList<T>::Iterator ORecordList<T>::begin()
+typename OPimRecordList<T>::Iterator OPimRecordList<T>::begin()
{
@@ -341,3 +341,3 @@ typename ORecordList<T>::Iterator ORecordList<T>::begin()
template <class T>
-typename ORecordList<T>::Iterator ORecordList<T>::end()
+typename OPimRecordList<T>::Iterator OPimRecordList<T>::end()
{
@@ -352,3 +352,3 @@ typename ORecordList<T>::Iterator ORecordList<T>::end()
template <class T>
-uint ORecordList<T>::count() const
+uint OPimRecordList<T>::count() const
{
@@ -359,3 +359,3 @@ uint ORecordList<T>::count() const
template <class T>
-T ORecordList<T>::operator[] ( uint i )
+T OPimRecordList<T>::operator[] ( uint i )
{
@@ -369,3 +369,3 @@ T ORecordList<T>::operator[] ( uint i )
template <class T>
-int ORecordList<T>::uidAt( uint i )
+int OPimRecordList<T>::uidAt( uint i )
{
@@ -376,3 +376,3 @@ int ORecordList<T>::uidAt( uint i )
template <class T>
-bool ORecordList<T>::remove( int uid )
+bool OPimRecordList<T>::remove( int uid )
{
diff --git a/libopie2/opiepim/core/orecur.cpp b/libopie2/opiepim/core/opimrecurrence.cpp
index 5e2da25..98bd647 100644
--- a/libopie2/opiepim/core/orecur.cpp
+++ b/libopie2/opiepim/core/opimrecurrence.cpp
@@ -29,6 +29,6 @@
-#include "orecur.h"
+#include "opimrecurrence.h"
/* OPIE */
-#include <opie2/otimezone.h>
+#include <opie2/opimtimezone.h>
#include <qpe/timeconversion.h>
@@ -43,5 +43,5 @@ namespace Opie {
-struct ORecur::Data : public QShared {
+struct OPimRecurrence::Data : public QShared {
Data() : QShared() {
- type = ORecur::NoRepeat;
+ type = OPimRecurrence::NoRepeat;
freq = -1;
@@ -54,3 +54,3 @@ struct ORecur::Data : public QShared {
char days; // Q_UINT8 for 8 seven days;)
- ORecur::RepeatType type;
+ OPimRecurrence::RepeatType type;
int freq;
@@ -67,3 +67,3 @@ struct ORecur::Data : public QShared {
-ORecur::ORecur() {
+OPimRecurrence::OPimRecurrence() {
data = new Data;
@@ -71,5 +71,5 @@ ORecur::ORecur() {
-ORecur::ORecur( const QMap<int, QString>& map )
+OPimRecurrence::OPimRecurrence( const QMap<int, QString>& map )
{
- ORecur();
+ OPimRecurrence();
fromMap( map );
@@ -78,3 +78,3 @@ ORecur::ORecur( const QMap<int, QString>& map )
-ORecur::ORecur( const ORecur& rec)
+OPimRecurrence::OPimRecurrence( const OPimRecurrence& rec)
: data( rec.data )
@@ -85,3 +85,3 @@ ORecur::ORecur( const ORecur& rec)
-ORecur::~ORecur() {
+OPimRecurrence::~OPimRecurrence() {
if ( data->deref() ) {
@@ -93,3 +93,3 @@ ORecur::~ORecur() {
-void ORecur::deref() {
+void OPimRecurrence::deref() {
if ( data->deref() ) {
@@ -101,3 +101,3 @@ void ORecur::deref() {
-bool ORecur::operator==( const ORecur& )const {
+bool OPimRecurrence::operator==( const OPimRecurrence& )const {
return false;
@@ -106,3 +106,3 @@ bool ORecur::operator==( const ORecur& )const {
-ORecur &ORecur::operator=( const ORecur& re) {
+OPimRecurrence &OPimRecurrence::operator=( const OPimRecurrence& re) {
if ( *this == re ) return *this;
@@ -117,3 +117,3 @@ ORecur &ORecur::operator=( const ORecur& re) {
-bool ORecur::doesRecur()const {
+bool OPimRecurrence::doesRecur()const {
return !( type() == NoRepeat );
@@ -126,3 +126,3 @@ bool ORecur::doesRecur()const {
*/
-bool ORecur::doesRecur( const QDate& date ) {
+bool OPimRecurrence::doesRecur( const QDate& date ) {
/* the day before the recurrance */
@@ -141,3 +141,3 @@ bool ORecur::doesRecur( const QDate& date ) {
// FIXME exception list!
-bool ORecur::nextOcurrence( const QDate& from, QDate& next ) {
+bool OPimRecurrence::nextOcurrence( const QDate& from, QDate& next ) {
bool stillLooking;
@@ -151,3 +151,3 @@ bool ORecur::nextOcurrence( const QDate& from, QDate& next ) {
-bool ORecur::p_nextOccurrence( const QDate& from, QDate& next ) {
+bool OPimRecurrence::p_nextOccurrence( const QDate& from, QDate& next ) {
@@ -425,3 +425,3 @@ bool ORecur::p_nextOccurrence( const QDate& from, QDate& next ) {
-ORecur::RepeatType ORecur::type()const{
+OPimRecurrence::RepeatType OPimRecurrence::type()const{
return data->type;
@@ -430,3 +430,3 @@ ORecur::RepeatType ORecur::type()const{
-int ORecur::frequency()const {
+int OPimRecurrence::frequency()const {
return data->freq;
@@ -435,3 +435,3 @@ int ORecur::frequency()const {
-int ORecur::position()const {
+int OPimRecurrence::position()const {
return data->pos;
@@ -440,3 +440,3 @@ int ORecur::position()const {
-char ORecur::days() const{
+char OPimRecurrence::days() const{
return data->days;
@@ -445,3 +445,3 @@ char ORecur::days() const{
-bool ORecur::hasEndDate()const {
+bool OPimRecurrence::hasEndDate()const {
return data->hasEnd;
@@ -450,3 +450,3 @@ bool ORecur::hasEndDate()const {
-QDate ORecur::endDate()const {
+QDate OPimRecurrence::endDate()const {
return data->end;
@@ -455,3 +455,3 @@ QDate ORecur::endDate()const {
-QDate ORecur::start()const{
+QDate OPimRecurrence::start()const{
return data->start;
@@ -460,3 +460,3 @@ QDate ORecur::start()const{
-QDateTime ORecur::createdDateTime()const {
+QDateTime OPimRecurrence::createdDateTime()const {
return data->create;
@@ -465,3 +465,3 @@ QDateTime ORecur::createdDateTime()const {
-int ORecur::repetition()const {
+int OPimRecurrence::repetition()const {
return data->rep;
@@ -470,3 +470,3 @@ int ORecur::repetition()const {
-QString ORecur::service()const {
+QString OPimRecurrence::service()const {
return data->app;
@@ -475,3 +475,3 @@ QString ORecur::service()const {
-ORecur::ExceptionList& ORecur::exceptions() {
+OPimRecurrence::ExceptionList& OPimRecurrence::exceptions() {
return data->list;
@@ -480,3 +480,3 @@ ORecur::ExceptionList& ORecur::exceptions() {
-void ORecur::setType( const RepeatType& z) {
+void OPimRecurrence::setType( const RepeatType& z) {
checkOrModify();
@@ -486,3 +486,3 @@ void ORecur::setType( const RepeatType& z) {
-void ORecur::setFrequency( int freq ) {
+void OPimRecurrence::setFrequency( int freq ) {
checkOrModify();
@@ -492,3 +492,3 @@ void ORecur::setFrequency( int freq ) {
-void ORecur::setPosition( int pos ) {
+void OPimRecurrence::setPosition( int pos ) {
checkOrModify();
@@ -498,3 +498,3 @@ void ORecur::setPosition( int pos ) {
-void ORecur::setDays( char c ) {
+void OPimRecurrence::setDays( char c ) {
checkOrModify();
@@ -504,3 +504,3 @@ void ORecur::setDays( char c ) {
-void ORecur::setEndDate( const QDate& dt) {
+void OPimRecurrence::setEndDate( const QDate& dt) {
checkOrModify();
@@ -510,3 +510,3 @@ void ORecur::setEndDate( const QDate& dt) {
-void ORecur::setCreatedDateTime( const QDateTime& t) {
+void OPimRecurrence::setCreatedDateTime( const QDateTime& t) {
checkOrModify();
@@ -516,3 +516,3 @@ void ORecur::setCreatedDateTime( const QDateTime& t) {
-void ORecur::setHasEndDate( bool b) {
+void OPimRecurrence::setHasEndDate( bool b) {
checkOrModify();
@@ -522,3 +522,3 @@ void ORecur::setHasEndDate( bool b) {
-void ORecur::setRepitition( int rep ) {
+void OPimRecurrence::setRepitition( int rep ) {
checkOrModify();
@@ -528,3 +528,3 @@ void ORecur::setRepitition( int rep ) {
-void ORecur::setService( const QString& app ) {
+void OPimRecurrence::setService( const QString& app ) {
checkOrModify();
@@ -534,3 +534,3 @@ void ORecur::setService( const QString& app ) {
-void ORecur::setStart( const QDate& dt ) {
+void OPimRecurrence::setStart( const QDate& dt ) {
checkOrModify();
@@ -540,3 +540,3 @@ void ORecur::setStart( const QDate& dt ) {
-void ORecur::checkOrModify() {
+void OPimRecurrence::checkOrModify() {
if ( data->count != 1 ) {
@@ -560,3 +560,3 @@ void ORecur::checkOrModify() {
-QString ORecur::toString()const {
+QString OPimRecurrence::toString()const {
QString buf;
@@ -565,16 +565,16 @@ QString ORecur::toString()const {
buf += " rtype=\"";
- buf += recMap[ORecur::RType];
+ buf += recMap[OPimRecurrence::RType];
buf += "\"";
if (data->days > 0 )
- buf += " rweekdays=\"" + recMap[ORecur::RWeekdays] + "\"";
+ buf += " rweekdays=\"" + recMap[OPimRecurrence::RWeekdays] + "\"";
if ( data->pos != 0 )
- buf += " rposition=\"" + recMap[ORecur::RPosition] + "\"";
+ buf += " rposition=\"" + recMap[OPimRecurrence::RPosition] + "\"";
- buf += " rfreq=\"" + recMap[ORecur::RFreq] + "\"";
- buf += " rhasenddate=\"" + recMap[ORecur::RHasEndDate]+ "\"";
+ buf += " rfreq=\"" + recMap[OPimRecurrence::RFreq] + "\"";
+ buf += " rhasenddate=\"" + recMap[OPimRecurrence::RHasEndDate]+ "\"";
if ( data->hasEnd )
buf += " enddt=\""
- + recMap[ORecur::EndDate]
+ + recMap[OPimRecurrence::EndDate]
+ "\"";
- buf += " created=\"" + recMap[ORecur::Created] + "\"";
+ buf += " created=\"" + recMap[OPimRecurrence::Created] + "\"";
@@ -582,3 +582,3 @@ QString ORecur::toString()const {
buf += " exceptions=\"";
- buf += recMap[ORecur::Exceptions];
+ buf += recMap[OPimRecurrence::Exceptions];
buf += "\" ";
@@ -588,3 +588,3 @@ QString ORecur::toString()const {
-QString ORecur::rTypeString() const
+QString OPimRecurrence::rTypeString() const
{
@@ -592,15 +592,15 @@ QString ORecur::rTypeString() const
switch ( data->type ) {
- case ORecur::Daily:
+ case OPimRecurrence::Daily:
retString = "Daily";
break;
- case ORecur::Weekly:
+ case OPimRecurrence::Weekly:
retString = "Weekly";
break;
- case ORecur::MonthlyDay:
+ case OPimRecurrence::MonthlyDay:
retString = "MonthlyDay";
break;
- case ORecur::MonthlyDate:
+ case OPimRecurrence::MonthlyDate:
retString = "MonthlyDate";
break;
- case ORecur::Yearly:
+ case OPimRecurrence::Yearly:
retString = "Yearly";
@@ -616,3 +616,3 @@ QString ORecur::rTypeString() const
-QMap<QString, ORecur::RepeatType> ORecur::rTypeValueConvertMap() const
+QMap<QString, OPimRecurrence::RepeatType> OPimRecurrence::rTypeValueConvertMap() const
{
@@ -620,8 +620,8 @@ QMap<QString, ORecur::RepeatType> ORecur::rTypeValueConvertMap() const
- convertMap.insert( QString( "Daily" ), ORecur::Daily );
- convertMap.insert( QString( "Weekly" ), ORecur::Weekly );
- convertMap.insert( QString( "MonthlyDay" ), ORecur::MonthlyDay );
- convertMap.insert( QString( "MonthlyDate" ), ORecur::MonthlyDate );
- convertMap.insert( QString( "Yearly" ), ORecur::Yearly );
- convertMap.insert( QString( "NoRepeat" ), ORecur::NoRepeat );
+ convertMap.insert( QString( "Daily" ), OPimRecurrence::Daily );
+ convertMap.insert( QString( "Weekly" ), OPimRecurrence::Weekly );
+ convertMap.insert( QString( "MonthlyDay" ), OPimRecurrence::MonthlyDay );
+ convertMap.insert( QString( "MonthlyDate" ), OPimRecurrence::MonthlyDate );
+ convertMap.insert( QString( "Yearly" ), OPimRecurrence::Yearly );
+ convertMap.insert( QString( "NoRepeat" ), OPimRecurrence::NoRepeat );
@@ -631,3 +631,3 @@ QMap<QString, ORecur::RepeatType> ORecur::rTypeValueConvertMap() const
-QMap<int, QString> ORecur::toMap() const
+QMap<int, QString> OPimRecurrence::toMap() const
{
@@ -635,10 +635,10 @@ QMap<int, QString> ORecur::toMap() const
- retMap.insert( ORecur::RType, rTypeString() );
- retMap.insert( ORecur::RWeekdays, QString::number( static_cast<int>( data->days ) ) );
- retMap.insert( ORecur::RPosition, QString::number(data->pos ) );
- retMap.insert( ORecur::RFreq, QString::number( data->freq ) );
- retMap.insert( ORecur::RHasEndDate, QString::number( static_cast<int>( data->hasEnd ) ) );
+ retMap.insert( OPimRecurrence::RType, rTypeString() );
+ retMap.insert( OPimRecurrence::RWeekdays, QString::number( static_cast<int>( data->days ) ) );
+ retMap.insert( OPimRecurrence::RPosition, QString::number(data->pos ) );
+ retMap.insert( OPimRecurrence::RFreq, QString::number( data->freq ) );
+ retMap.insert( OPimRecurrence::RHasEndDate, QString::number( static_cast<int>( data->hasEnd ) ) );
if( data -> hasEnd )
- retMap.insert( ORecur::EndDate, QString::number( OTimeZone::utc().fromUTCDateTime( QDateTime( data->end, QTime(12,0,0) ) ) ) );
- retMap.insert( ORecur::Created, QString::number( OTimeZone::utc().fromUTCDateTime( data->create ) ) );
+ retMap.insert( OPimRecurrence::EndDate, QString::number( OPimTimeZone::utc().fromUTCDateTime( QDateTime( data->end, QTime(12,0,0) ) ) ) );
+ retMap.insert( OPimRecurrence::Created, QString::number( OPimTimeZone::utc().fromUTCDateTime( data->create ) ) );
@@ -658,3 +658,3 @@ QMap<int, QString> ORecur::toMap() const
- retMap.insert( ORecur::Exceptions, exceptBuf );
+ retMap.insert( OPimRecurrence::Exceptions, exceptBuf );
@@ -663,3 +663,3 @@ QMap<int, QString> ORecur::toMap() const
-void ORecur::fromMap( const QMap<int, QString>& map )
+void OPimRecurrence::fromMap( const QMap<int, QString>& map )
{
@@ -667,12 +667,12 @@ void ORecur::fromMap( const QMap<int, QString>& map )
- data -> type = repTypeMap[ map [ORecur::RType] ];
- data -> days = (char) map[ ORecur::RWeekdays ].toInt();
- data -> pos = map[ ORecur::RPosition ].toInt();
- data -> freq = map[ ORecur::RFreq ].toInt();
- data -> hasEnd= map[ ORecur::RHasEndDate ].toInt() ? true : false;
- OTimeZone utc = OTimeZone::utc();
+ data -> type = repTypeMap[ map [OPimRecurrence::RType] ];
+ data -> days = (char) map[ OPimRecurrence::RWeekdays ].toInt();
+ data -> pos = map[ OPimRecurrence::RPosition ].toInt();
+ data -> freq = map[ OPimRecurrence::RFreq ].toInt();
+ data -> hasEnd= map[ OPimRecurrence::RHasEndDate ].toInt() ? true : false;
+ OPimTimeZone utc = OPimTimeZone::utc();
if ( data -> hasEnd ){
- data -> end = utc.fromUTCDateTime( (time_t) map[ ORecur::EndDate ].toLong() ).date();
+ data -> end = utc.fromUTCDateTime( (time_t) map[ OPimRecurrence::EndDate ].toLong() ).date();
}
- data -> create = utc.fromUTCDateTime( (time_t) map[ ORecur::Created ].toLong() ).date();
+ data -> create = utc.fromUTCDateTime( (time_t) map[ OPimRecurrence::Created ].toLong() ).date();
@@ -682,3 +682,3 @@ void ORecur::fromMap( const QMap<int, QString>& map )
data -> list.clear();
- QString exceptStr = map[ ORecur::Exceptions ];
+ QString exceptStr = map[ OPimRecurrence::Exceptions ];
QStringList exceptList = QStringList::split( " ", exceptStr );
diff --git a/libopie2/opiepim/core/orecur.h b/libopie2/opiepim/core/opimrecurrence.h
index 7808897..f186cfe 100644
--- a/libopie2/opiepim/core/orecur.h
+++ b/libopie2/opiepim/core/opimrecurrence.h
@@ -45,3 +45,3 @@ namespace Opie {
-class ORecur {
+class OPimRecurrence {
@@ -56,9 +56,9 @@ class ORecur {
- ORecur();
- ORecur( const QMap<int, QString>& map );
- ORecur( const ORecur& );
- ~ORecur();
+ OPimRecurrence();
+ OPimRecurrence( const QMap<int, QString>& map );
+ OPimRecurrence( const OPimRecurrence& );
+ ~OPimRecurrence();
- ORecur &operator=( const ORecur& );
- bool operator==(const ORecur& )const;
+ OPimRecurrence &operator=( const OPimRecurrence& );
+ bool operator==(const OPimRecurrence& )const;
@@ -87,3 +87,3 @@ class ORecur {
/**
- * The module this ORecur belongs to
+ * The module this OPimRecurrence belongs to
*/
@@ -131,4 +131,4 @@ class ORecur {
Data* data;
- class ORecurPrivate;
- ORecurPrivate *d;
+ class OPimRecurrencePrivate;
+ OPimRecurrencePrivate *d;
};
diff --git a/libopie2/opiepim/core/opimresolver.cpp b/libopie2/opiepim/core/opimresolver.cpp
index 73d7de1..eb6661a 100644
--- a/libopie2/opiepim/core/opimresolver.cpp
+++ b/libopie2/opiepim/core/opimresolver.cpp
@@ -74,5 +74,5 @@ OPimRecord* OPimResolver::record( int rtti ) {
case 1: /* todolist */
- rec = new OTodo();
+ rec = new OPimTodo();
case 2: /* contact */
- rec = new OContact();
+ rec = new OPimContact();
default:
@@ -213,3 +213,3 @@ OPimBase* OPimResolver::backend( int rtti ) {
case TodoList:
- base = new OTodoAccess();
+ base = new OPimTodoAccess();
break;
@@ -218,3 +218,3 @@ OPimBase* OPimResolver::backend( int rtti ) {
case AddressBook:
- base = new OContactAccess("Resolver");
+ base = new OPimContactAccess("Resolver");
break;
diff --git a/libopie2/opiepim/core/opimresolver.h b/libopie2/opiepim/core/opimresolver.h
index dd6f07f..0a6dddf 100644
--- a/libopie2/opiepim/core/opimresolver.h
+++ b/libopie2/opiepim/core/opimresolver.h
@@ -32,3 +32,3 @@
/* OPIE */
-#include <opie2/otemplatebase.h>
+#include <opie2/opimtemplatebase.h>
diff --git a/libopie2/opiepim/core/otemplatebase.h b/libopie2/opiepim/core/opimtemplatebase.h
index 58cbfeb..58cbfeb 100644
--- a/libopie2/opiepim/core/otemplatebase.h
+++ b/libopie2/opiepim/core/opimtemplatebase.h
diff --git a/libopie2/opiepim/core/otimezone.cpp b/libopie2/opiepim/core/opimtimezone.cpp
index e67715f..be21b1b 100644
--- a/libopie2/opiepim/core/otimezone.cpp
+++ b/libopie2/opiepim/core/opimtimezone.cpp
@@ -29,3 +29,3 @@
-#include "otimezone.h"
+#include "opimtimezone.h"
@@ -102,3 +102,3 @@ namespace Opie
{
-OTimeZone::OTimeZone( const ZoneName& zone )
+OPimTimeZone::OPimTimeZone( const ZoneName& zone )
: m_name( zone )
@@ -107,3 +107,3 @@ OTimeZone::OTimeZone( const ZoneName& zone )
-OTimeZone::~OTimeZone()
+OPimTimeZone::~OPimTimeZone()
{}
@@ -111,3 +111,3 @@ OTimeZone::~OTimeZone()
-bool OTimeZone::isValid() const
+bool OPimTimeZone::isValid() const
{
@@ -120,5 +120,5 @@ bool OTimeZone::isValid() const
*/
-QDateTime OTimeZone::toLocalDateTime( const QDateTime& dt )
+QDateTime OPimTimeZone::toLocalDateTime( const QDateTime& dt )
{
- return OTimeZone::current().toDateTime( dt, *this );
+ return OPimTimeZone::current().toDateTime( dt, *this );
}
@@ -126,5 +126,5 @@ QDateTime OTimeZone::toLocalDateTime( const QDateTime& dt )
-QDateTime OTimeZone::toUTCDateTime( const QDateTime& dt )
+QDateTime OPimTimeZone::toUTCDateTime( const QDateTime& dt )
{
- return OTimeZone::utc().toDateTime( dt, *this );
+ return OPimTimeZone::utc().toDateTime( dt, *this );
}
@@ -132,3 +132,3 @@ QDateTime OTimeZone::toUTCDateTime( const QDateTime& dt )
-QDateTime OTimeZone::fromUTCDateTime( time_t t )
+QDateTime OPimTimeZone::fromUTCDateTime( time_t t )
{
@@ -138,3 +138,3 @@ QDateTime OTimeZone::fromUTCDateTime( time_t t )
-QDateTime OTimeZone::toDateTime( time_t t )
+QDateTime OPimTimeZone::toDateTime( time_t t )
{
@@ -148,3 +148,3 @@ QDateTime OTimeZone::toDateTime( time_t t )
*/
-QDateTime OTimeZone::toDateTime( const QDateTime& dt, const OTimeZone& zone )
+QDateTime OPimTimeZone::toDateTime( const QDateTime& dt, const OPimTimeZone& zone )
{
@@ -156,3 +156,3 @@ QDateTime OTimeZone::toDateTime( const QDateTime& dt, const OTimeZone& zone )
-time_t OTimeZone::fromDateTime( const QDateTime& time )
+time_t OPimTimeZone::fromDateTime( const QDateTime& time )
{
@@ -162,3 +162,3 @@ time_t OTimeZone::fromDateTime( const QDateTime& time )
-time_t OTimeZone::fromUTCDateTime( const QDateTime& time )
+time_t OPimTimeZone::fromUTCDateTime( const QDateTime& time )
{
@@ -168,6 +168,6 @@ time_t OTimeZone::fromUTCDateTime( const QDateTime& time )
-OTimeZone OTimeZone::current()
+OPimTimeZone OPimTimeZone::current()
{
QCString str = ::getenv( "TZ" );
- OTimeZone zone( str );
+ OPimTimeZone zone( str );
return zone;
@@ -176,5 +176,5 @@ OTimeZone OTimeZone::current()
-OTimeZone OTimeZone::utc()
+OPimTimeZone OPimTimeZone::utc()
{
- return OTimeZone( "UTC" );
+ return OPimTimeZone( "UTC" );
}
@@ -182,3 +182,3 @@ OTimeZone OTimeZone::utc()
-QString OTimeZone::timeZone() const
+QString OPimTimeZone::timeZone() const
{
diff --git a/libopie2/opiepim/core/otimezone.h b/libopie2/opiepim/core/opimtimezone.h
index f0b4022..284e80f 100644
--- a/libopie2/opiepim/core/otimezone.h
+++ b/libopie2/opiepim/core/opimtimezone.h
@@ -46,3 +46,3 @@ namespace Opie
*/
-class OTimeZone {
+class OPimTimeZone {
@@ -50,4 +50,4 @@ class OTimeZone {
typedef QString ZoneName;
- OTimeZone( const ZoneName& = ZoneName::null );
- virtual ~OTimeZone(); // just in case.
+ OPimTimeZone( const ZoneName& = ZoneName::null );
+ virtual ~OPimTimeZone(); // just in case.
@@ -82,3 +82,3 @@ class OTimeZone {
*/
- QDateTime toDateTime( const QDateTime&, const OTimeZone& timeZone );
+ QDateTime toDateTime( const QDateTime&, const OPimTimeZone& timeZone );
@@ -94,4 +94,4 @@ class OTimeZone {
- static OTimeZone current();
- static OTimeZone utc();
+ static OPimTimeZone current();
+ static OPimTimeZone utc();
diff --git a/libopie2/opiepim/otodo.cpp b/libopie2/opiepim/core/opimtodo.cpp
index f534067..34df807 100644
--- a/libopie2/opiepim/otodo.cpp
+++ b/libopie2/opiepim/core/opimtodo.cpp
@@ -29,3 +29,3 @@
-#include "otodo.h"
+#include "opimtodo.h"
@@ -33,3 +33,3 @@
#include <opie2/opimstate.h>
-#include <opie2/orecur.h>
+#include <opie2/opimrecurrence.h>
#include <opie2/opimmaintainer.h>
@@ -51,5 +51,5 @@ namespace Opie
-struct OTodo::OTodoData : public QShared
+struct OPimTodo::OPimTodoData : public QShared
{
- OTodoData() : QShared()
+ OPimTodoData() : QShared()
{
@@ -60,3 +60,3 @@ struct OTodo::OTodoData : public QShared
};
- ~OTodoData()
+ ~OPimTodoData()
{
@@ -76,3 +76,3 @@ struct OTodo::OTodoData : public QShared
OPimState *state;
- ORecur *recur;
+ OPimRecurrence *recur;
OPimMaintainer *maintainer;
@@ -84,3 +84,3 @@ struct OTodo::OTodoData : public QShared
-OTodo::OTodo( const OTodo &event )
+OPimTodo::OPimTodo( const OPimTodo &event )
: OPimRecord( event ), data( event.data )
@@ -92,9 +92,9 @@ OTodo::OTodo( const OTodo &event )
-OTodo::~OTodo()
+OPimTodo::~OPimTodo()
{
- // qWarning("~OTodo " );
+ // qWarning("~OPimTodo " );
if ( data->deref() )
{
- // qWarning("OTodo::dereffing");
+ // qWarning("OPimTodo::dereffing");
delete data;
@@ -105,3 +105,3 @@ OTodo::~OTodo()
-OTodo::OTodo( bool completed, int priority,
+OPimTodo::OPimTodo( bool completed, int priority,
const QArray<int> &category,
@@ -113,6 +113,6 @@ OTodo::OTodo( bool completed, int priority,
{
- // qWarning("OTodoData " + summary);
+ // qWarning("OPimTodoData " + summary);
setCategories( category );
- data = new OTodoData;
+ data = new OPimTodoData;
@@ -128,3 +128,3 @@ OTodo::OTodo( bool completed, int priority,
-OTodo::OTodo( bool completed, int priority,
+OPimTodo::OPimTodo( bool completed, int priority,
const QStringList &category,
@@ -136,6 +136,6 @@ OTodo::OTodo( bool completed, int priority,
{
- // qWarning("OTodoData" + summary);
+ // qWarning("OPimTodoData" + summary);
setCategories( idsFromString( category.join( ";" ) ) );
- data = new OTodoData;
+ data = new OPimTodoData;
@@ -151,3 +151,3 @@ OTodo::OTodo( bool completed, int priority,
-bool OTodo::match( const QRegExp &regExp ) const
+bool OPimTodo::match( const QRegExp &regExp ) const
{
@@ -177,3 +177,3 @@ bool OTodo::match( const QRegExp &regExp ) const
-bool OTodo::isCompleted() const
+bool OPimTodo::isCompleted() const
{
@@ -183,3 +183,3 @@ bool OTodo::isCompleted() const
-bool OTodo::hasDueDate() const
+bool OPimTodo::hasDueDate() const
{
@@ -189,3 +189,3 @@ bool OTodo::hasDueDate() const
-bool OTodo::hasStartDate() const
+bool OPimTodo::hasStartDate() const
{
@@ -195,3 +195,3 @@ bool OTodo::hasStartDate() const
-bool OTodo::hasCompletedDate() const
+bool OPimTodo::hasCompletedDate() const
{
@@ -201,3 +201,3 @@ bool OTodo::hasCompletedDate() const
-int OTodo::priority() const
+int OPimTodo::priority() const
{
@@ -207,3 +207,3 @@ int OTodo::priority() const
-QString OTodo::summary() const
+QString OPimTodo::summary() const
{
@@ -213,3 +213,3 @@ QString OTodo::summary() const
-ushort OTodo::progress() const
+ushort OPimTodo::progress() const
{
@@ -219,3 +219,3 @@ ushort OTodo::progress() const
-QDate OTodo::dueDate() const
+QDate OPimTodo::dueDate() const
{
@@ -225,3 +225,3 @@ QDate OTodo::dueDate() const
-QDate OTodo::startDate() const
+QDate OPimTodo::startDate() const
{
@@ -231,3 +231,3 @@ QDate OTodo::startDate() const
-QDate OTodo::completedDate() const
+QDate OPimTodo::completedDate() const
{
@@ -237,3 +237,3 @@ QDate OTodo::completedDate() const
-QString OTodo::description() const
+QString OPimTodo::description() const
{
@@ -243,3 +243,3 @@ QString OTodo::description() const
-bool OTodo::hasState() const
+bool OPimTodo::hasState() const
{
@@ -250,3 +250,3 @@ bool OTodo::hasState() const
-OPimState OTodo::state() const
+OPimState OPimTodo::state() const
{
@@ -262,3 +262,3 @@ OPimState OTodo::state() const
-bool OTodo::hasRecurrence() const
+bool OPimTodo::hasRecurrence() const
{
@@ -269,5 +269,5 @@ bool OTodo::hasRecurrence() const
-ORecur OTodo::recurrence() const
+OPimRecurrence OPimTodo::recurrence() const
{
- if ( !data->recur ) return ORecur();
+ if ( !data->recur ) return OPimRecurrence();
@@ -277,3 +277,3 @@ ORecur OTodo::recurrence() const
-bool OTodo::hasMaintainer() const
+bool OPimTodo::hasMaintainer() const
{
@@ -285,3 +285,3 @@ bool OTodo::hasMaintainer() const
-OPimMaintainer OTodo::maintainer() const
+OPimMaintainer OPimTodo::maintainer() const
{
@@ -293,3 +293,3 @@ OPimMaintainer OTodo::maintainer() const
-void OTodo::setCompleted( bool completed )
+void OPimTodo::setCompleted( bool completed )
{
@@ -300,3 +300,3 @@ void OTodo::setCompleted( bool completed )
-void OTodo::setHasDueDate( bool hasDate )
+void OPimTodo::setHasDueDate( bool hasDate )
{
@@ -307,3 +307,3 @@ void OTodo::setHasDueDate( bool hasDate )
-void OTodo::setDescription( const QString &desc )
+void OPimTodo::setDescription( const QString &desc )
{
@@ -315,3 +315,3 @@ void OTodo::setDescription( const QString &desc )
-void OTodo::setSummary( const QString& sum )
+void OPimTodo::setSummary( const QString& sum )
{
@@ -322,3 +322,3 @@ void OTodo::setSummary( const QString& sum )
-void OTodo::setPriority( int prio )
+void OPimTodo::setPriority( int prio )
{
@@ -329,3 +329,3 @@ void OTodo::setPriority( int prio )
-void OTodo::setDueDate( const QDate& date )
+void OPimTodo::setDueDate( const QDate& date )
{
@@ -336,3 +336,3 @@ void OTodo::setDueDate( const QDate& date )
-void OTodo::setStartDate( const QDate& date )
+void OPimTodo::setStartDate( const QDate& date )
{
@@ -343,3 +343,3 @@ void OTodo::setStartDate( const QDate& date )
-void OTodo::setCompletedDate( const QDate& date )
+void OPimTodo::setCompletedDate( const QDate& date )
{
@@ -350,3 +350,3 @@ void OTodo::setCompletedDate( const QDate& date )
-void OTodo::setState( const OPimState& state )
+void OPimTodo::setState( const OPimState& state )
{
@@ -360,3 +360,3 @@ void OTodo::setState( const OPimState& state )
-void OTodo::setRecurrence( const ORecur& rec )
+void OPimTodo::setRecurrence( const OPimRecurrence& rec )
{
@@ -366,3 +366,3 @@ void OTodo::setRecurrence( const ORecur& rec )
else
- data->recur = new ORecur( rec );
+ data->recur = new OPimRecurrence( rec );
}
@@ -370,3 +370,3 @@ void OTodo::setRecurrence( const ORecur& rec )
-void OTodo::setMaintainer( const OPimMaintainer& pim )
+void OPimTodo::setMaintainer( const OPimMaintainer& pim )
{
@@ -381,3 +381,3 @@ void OTodo::setMaintainer( const OPimMaintainer& pim )
-bool OTodo::isOverdue( )
+bool OPimTodo::isOverdue( )
{
@@ -389,3 +389,3 @@ bool OTodo::isOverdue( )
-void OTodo::setProgress( ushort progress )
+void OPimTodo::setProgress( ushort progress )
{
@@ -396,3 +396,3 @@ void OTodo::setProgress( ushort progress )
-QString OTodo::toShortText() const
+QString OPimTodo::toShortText() const
{
@@ -405,3 +405,3 @@ QString OTodo::toShortText() const
*/
-QString OTodo::toRichText() const
+QString OPimTodo::toRichText() const
{
@@ -475,3 +475,3 @@ QString OTodo::toRichText() const
-bool OTodo::hasNotifiers() const
+bool OPimTodo::hasNotifiers() const
{
@@ -482,3 +482,3 @@ bool OTodo::hasNotifiers() const
-OPimNotifyManager& OTodo::notifiers()
+OPimNotifyManager& OPimTodo::notifiers()
{
@@ -490,3 +490,3 @@ OPimNotifyManager& OTodo::notifiers()
-const OPimNotifyManager& OTodo::notifiers() const
+const OPimNotifyManager& OPimTodo::notifiers() const
{
@@ -499,3 +499,3 @@ const OPimNotifyManager& OTodo::notifiers() const
-bool OTodo::operator<( const OTodo &toDoEvent ) const
+bool OPimTodo::operator<( const OPimTodo &toDoEvent ) const
{
@@ -518,3 +518,3 @@ bool OTodo::operator<( const OTodo &toDoEvent ) const
-bool OTodo::operator<=( const OTodo &toDoEvent ) const
+bool OPimTodo::operator<=( const OPimTodo &toDoEvent ) const
{
@@ -537,3 +537,3 @@ bool OTodo::operator<=( const OTodo &toDoEvent ) const
-bool OTodo::operator>( const OTodo &toDoEvent ) const
+bool OPimTodo::operator>( const OPimTodo &toDoEvent ) const
{
@@ -556,3 +556,3 @@ bool OTodo::operator>( const OTodo &toDoEvent ) const
-bool OTodo::operator>=( const OTodo &toDoEvent ) const
+bool OPimTodo::operator>=( const OPimTodo &toDoEvent ) const
{
@@ -575,3 +575,3 @@ bool OTodo::operator>=( const OTodo &toDoEvent ) const
-bool OTodo::operator==( const OTodo &toDoEvent ) const
+bool OPimTodo::operator==( const OPimTodo &toDoEvent ) const
{
@@ -591,3 +591,3 @@ bool OTodo::operator==( const OTodo &toDoEvent ) const
-void OTodo::deref()
+void OPimTodo::deref()
{
@@ -604,3 +604,3 @@ void OTodo::deref()
-OTodo &OTodo::operator=( const OTodo &item )
+OPimTodo &OPimTodo::operator=( const OPimTodo &item )
{
@@ -618,3 +618,3 @@ OTodo &OTodo::operator=( const OTodo &item )
-QMap<int, QString> OTodo::toMap() const
+QMap<int, QString> OPimTodo::toMap() const
{
@@ -648,3 +648,3 @@ QMap<int, QString> OTodo::toMap() const
*/
-void OTodo::changeOrModify()
+void OPimTodo::changeOrModify()
{
@@ -654,3 +654,3 @@ void OTodo::changeOrModify()
data->deref();
- OTodoData* d2 = new OTodoData();
+ OPimTodoData* d2 = new OPimTodoData();
copy( data, d2 );
@@ -666,3 +666,3 @@ void OTodo::changeOrModify()
*/
-void OTodo::copy( OTodoData* src, OTodoData* dest )
+void OPimTodo::copy( OPimTodoData* src, OPimTodoData* dest )
{
@@ -681,3 +681,3 @@ void OTodo::copy( OTodoData* src, OTodoData* dest )
if ( src->recur )
- dest->recur = new ORecur( *src->recur );
+ dest->recur = new OPimRecurrence( *src->recur );
@@ -694,5 +694,5 @@ void OTodo::copy( OTodoData* src, OTodoData* dest )
-QString OTodo::type() const
+QString OPimTodo::type() const
{
- return QString::fromLatin1( "OTodo" );
+ return QString::fromLatin1( "OPimTodo" );
}
@@ -700,3 +700,3 @@ QString OTodo::type() const
-QString OTodo::recordField( int /*id*/ ) const
+QString OPimTodo::recordField( int /*id*/ ) const
{
@@ -706,3 +706,3 @@ QString OTodo::recordField( int /*id*/ ) const
-int OTodo::rtti()
+int OPimTodo::rtti()
{
diff --git a/libopie2/opiepim/otodo.h b/libopie2/opiepim/core/opimtodo.h
index 04dd269..5304180 100644
--- a/libopie2/opiepim/otodo.h
+++ b/libopie2/opiepim/core/opimtodo.h
@@ -49,9 +49,9 @@ namespace Opie
class OPimState;
-class ORecur;
+class OPimRecurrence;
class OPimMaintainer;
class OPimNotifyManager;
-class OTodo : public OPimRecord
+class OPimTodo : public OPimRecord
{
public:
- typedef QValueList<OTodo> ValueList;
+ typedef QValueList<OPimTodo> ValueList;
enum RecordFields {
@@ -92,3 +92,3 @@ class OTodo : public OPimRecord
**/
- OTodo( bool completed = false, int priority = Normal,
+ OPimTodo( bool completed = false, int priority = Normal,
const QStringList &category = QStringList(),
@@ -100,3 +100,3 @@ class OTodo : public OPimRecord
- OTodo( bool completed, int priority,
+ OPimTodo( bool completed, int priority,
const QArray<int>& category,
@@ -111,3 +111,3 @@ class OTodo : public OPimRecord
*/
- OTodo( const OTodo & );
+ OPimTodo( const OPimTodo & );
@@ -116,3 +116,3 @@ class OTodo : public OPimRecord
*/
- ~OTodo();
+ ~OPimTodo();
@@ -161,3 +161,3 @@ class OTodo : public OPimRecord
/**
- * What is the state of this OTodo?
+ * What is the state of this OPimTodo?
*/
@@ -173,6 +173,6 @@ class OTodo : public OPimRecord
*/
- ORecur recurrence() const;
+ OPimRecurrence recurrence() const;
/**
- * does this OTodo have a maintainer?
+ * does this OPimTodo have a maintainer?
*/
@@ -181,3 +181,3 @@ class OTodo : public OPimRecord
/**
- * the Maintainer of this OTodo
+ * the Maintainer of this OPimTodo
*/
@@ -268,3 +268,3 @@ class OTodo : public OPimRecord
- void setRecurrence( const ORecur& );
+ void setRecurrence( const OPimRecurrence& );
@@ -289,9 +289,9 @@ class OTodo : public OPimRecord
- bool operator<( const OTodo &toDoEvent ) const;
- bool operator<=( const OTodo &toDoEvent ) const;
- bool operator!=( const OTodo &toDoEvent ) const;
- bool operator>( const OTodo &toDoEvent ) const;
- bool operator>=( const OTodo &toDoEvent ) const;
- bool operator==( const OTodo &toDoEvent ) const;
- OTodo &operator=( const OTodo &toDoEvent );
+ bool operator<( const OPimTodo &toDoEvent ) const;
+ bool operator<=( const OPimTodo &toDoEvent ) const;
+ bool operator!=( const OPimTodo &toDoEvent ) const;
+ bool operator>( const OPimTodo &toDoEvent ) const;
+ bool operator>=( const OPimTodo &toDoEvent ) const;
+ bool operator==( const OPimTodo &toDoEvent ) const;
+ OPimTodo &operator=( const OPimTodo &toDoEvent );
@@ -300,4 +300,4 @@ class OTodo : public OPimRecord
private:
- class OTodoPrivate;
- struct OTodoData;
+ class OPimTodoPrivate;
+ struct OPimTodoData;
@@ -305,5 +305,5 @@ class OTodo : public OPimRecord
inline void changeOrModify();
- void copy( OTodoData* src, OTodoData* dest );
- OTodoPrivate *d;
- OTodoData *data;
+ void copy( OPimTodoData* src, OPimTodoData* dest );
+ OPimTodoPrivate *d;
+ OPimTodoData *data;
@@ -312,3 +312,3 @@ class OTodo : public OPimRecord
-inline bool OTodo::operator!=( const OTodo &toDoEvent ) const
+inline bool OPimTodo::operator!=( const OPimTodo &toDoEvent ) const
{
diff --git a/libopie2/opiepim/core/otodoaccess.cpp b/libopie2/opiepim/core/otodoaccess.cpp
index 2a3695d..83750d5 100644
--- a/libopie2/opiepim/core/otodoaccess.cpp
+++ b/libopie2/opiepim/core/otodoaccess.cpp
@@ -37,7 +37,7 @@
namespace Opie {
-OTodoAccess::OTodoAccess( OTodoAccessBackend* end, enum Access )
- : QObject(), OPimAccessTemplate<OTodo>( end ), m_todoBackEnd( end )
+OPimTodoAccess::OPimTodoAccess( OPimTodoAccessBackend* end, enum Access )
+ : QObject(), OPimAccessTemplate<OPimTodo>( end ), m_todoBackEnd( end )
{
// if (end == 0l )
-// m_todoBackEnd = new OTodoAccessBackendSQL( QString::null);
+// m_todoBackEnd = new OPimTodoAccessBackendSQL( QString::null);
@@ -45,3 +45,3 @@ OTodoAccess::OTodoAccess( OTodoAccessBackend* end, enum Access )
if (end == 0l )
- m_todoBackEnd = OBackendFactory<OTodoAccessBackend>::Default ("todo", QString::null);
+ m_todoBackEnd = OBackendFactory<OPimTodoAccessBackend>::Default ("todo", QString::null);
@@ -49,7 +49,7 @@ OTodoAccess::OTodoAccess( OTodoAccessBackend* end, enum Access )
}
-OTodoAccess::~OTodoAccess() {
-// qWarning("~OTodoAccess");
+OPimTodoAccess::~OPimTodoAccess() {
+// qWarning("~OPimTodoAccess");
}
-void OTodoAccess::mergeWith( const QValueList<OTodo>& list ) {
- QValueList<OTodo>::ConstIterator it;
+void OPimTodoAccess::mergeWith( const QValueList<OPimTodo>& list ) {
+ QValueList<OPimTodo>::ConstIterator it;
for ( it = list.begin(); it != list.end(); ++it ) {
@@ -58,3 +58,3 @@ void OTodoAccess::mergeWith( const QValueList<OTodo>& list ) {
}
-OTodoAccess::List OTodoAccess::effectiveToDos( const QDate& start,
+OPimTodoAccess::List OPimTodoAccess::effectiveToDos( const QDate& start,
const QDate& end,
@@ -66,3 +66,3 @@ OTodoAccess::List OTodoAccess::effectiveToDos( const QDate& start,
}
-OTodoAccess::List OTodoAccess::effectiveToDos( const QDate& start,
+OPimTodoAccess::List OPimTodoAccess::effectiveToDos( const QDate& start,
bool includeNoDates ) {
@@ -71,3 +71,3 @@ OTodoAccess::List OTodoAccess::effectiveToDos( const QDate& start,
}
-OTodoAccess::List OTodoAccess::overDue() {
+OPimTodoAccess::List OPimTodoAccess::overDue() {
List lis( m_todoBackEnd->overDue(), this );
@@ -76,15 +76,15 @@ OTodoAccess::List OTodoAccess::overDue() {
/* sort order */
-OTodoAccess::List OTodoAccess::sorted( bool ascending, int sort,int filter, int cat ) {
+OPimTodoAccess::List OPimTodoAccess::sorted( bool ascending, int sort,int filter, int cat ) {
QArray<int> ints = m_todoBackEnd->sorted( ascending, sort,
filter, cat );
- OTodoAccess::List list( ints, this );
+ OPimTodoAccess::List list( ints, this );
return list;
}
-void OTodoAccess::removeAllCompleted() {
+void OPimTodoAccess::removeAllCompleted() {
m_todoBackEnd->removeAllCompleted();
}
-QBitArray OTodoAccess::backendSupport( const QString& ) const{
+QBitArray OPimTodoAccess::backendSupport( const QString& ) const{
return m_todoBackEnd->supports();
}
-bool OTodoAccess::backendSupports( int attr, const QString& ar) const{
+bool OPimTodoAccess::backendSupports( int attr, const QString& ar) const{
return backendSupport(ar).testBit( attr );
diff --git a/libopie2/opiepim/core/otodoaccess.h b/libopie2/opiepim/core/otodoaccess.h
index e13d277..51f3793 100644
--- a/libopie2/opiepim/core/otodoaccess.h
+++ b/libopie2/opiepim/core/otodoaccess.h
@@ -34,3 +34,3 @@
-#include <opie2/otodo.h>
+#include <opie2/opimtodo.h>
#include <opie2/otodoaccessbackend.h>
@@ -41,3 +41,3 @@ namespace Opie {
/**
- * OTodoAccess
+ * OPimTodoAccess
* the class to get access to
@@ -45,3 +45,3 @@ namespace Opie {
*/
-class OTodoAccess : public QObject, public OPimAccessTemplate<OTodo> {
+class OPimTodoAccess : public QObject, public OPimAccessTemplate<OPimTodo> {
Q_OBJECT
@@ -60,4 +60,4 @@ public:
*/
- OTodoAccess( OTodoAccessBackend* = 0l, enum Access acc = Random );
- ~OTodoAccess();
+ OPimTodoAccess( OPimTodoAccessBackend* = 0l, enum Access acc = Random );
+ ~OPimTodoAccess();
@@ -83,3 +83,3 @@ public:
/**
- * return overdue OTodos
+ * return overdue OPimTodos
*/
@@ -93,6 +93,6 @@ public:
/**
- * merge a list of OTodos into
+ * merge a list of OPimTodos into
* the resource
*/
- void mergeWith( const QValueList<OTodo>& );
+ void mergeWith( const QValueList<OPimTodo>& );
@@ -106,3 +106,3 @@ public:
* Supports in the sense of beeing able to store.
- * This is related to the enum in OTodo
+ * This is related to the enum in OPimTodo
*
@@ -120,13 +120,13 @@ signals:
/**
- * if the OTodoAccess was changed
+ * if the OPimTodoAccess was changed
*/
- void changed( const OTodoAccess* );
- void changed( const OTodoAccess*, int uid );
- void added( const OTodoAccess*, int uid );
- void removed( const OTodoAccess*, int uid );
+ void changed( const OPimTodoAccess* );
+ void changed( const OPimTodoAccess*, int uid );
+ void added( const OPimTodoAccess*, int uid );
+ void removed( const OPimTodoAccess*, int uid );
private:
int m_cat;
- OTodoAccessBackend* m_todoBackEnd;
- class OTodoAccessPrivate;
- OTodoAccessPrivate* d;
+ OPimTodoAccessBackend* m_todoBackEnd;
+ class OPimTodoAccessPrivate;
+ OPimTodoAccessPrivate* d;
};
diff --git a/libopie2/opiepim/libopiepim2.control b/libopie2/opiepim/libopiepim2.control
index 1b419ad..b548b01 100644
--- a/libopie2/opiepim/libopiepim2.control
+++ b/libopie2/opiepim/libopiepim2.control
@@ -6,4 +6,4 @@ Maintainer: Opie Team <opie@handhelds.org>
Architecture: arm
-Version: 1.8.2-$SUB_VERSION.2
-Depends: libqpe1, libopiecore2 (1.8.2)
+Version: 1.8.3-$SUB_VERSION.2
+Depends: libqpe1, libopiecore2 (>=1.8.0)
Provides: libopiepim2
diff --git a/libopie2/opiepim/opiepim.pro b/libopie2/opiepim/opiepim.pro
index 82737f4..9a34e29 100644
--- a/libopie2/opiepim/opiepim.pro
+++ b/libopie2/opiepim/opiepim.pro
@@ -3,11 +3,13 @@ CONFIG += qt warn_on debug
DESTDIR = $(OPIEDIR)/lib
-HEADERS = ocontact.h ocontactfields.h opimrecord.h otodo.h opimnotify.h opimnotifymanager.h oevent.h
+HEADERS = opimcontact.h opimcontactfields.h opimrecord.h opimtodo.h opimnotify.h \
+ opimnotifymanager.h opimevent.h
-SOURCES = ocontact.cpp ocontactfields.cpp opimrecord.cpp otodo.cpp opimnotify.cpp \
- opimnotifymanager.cpp oevent.cpp
+SOURCES = opimcontact.cpp opimcontactfields.cpp opimrecord.cpp opimtodo.cpp opimnotify.cpp \
+ opimnotifymanager.cpp opimevent.cpp
INTERFACES =
TARGET = opiepim2
-VERSION = 1.8.2
+VERSION = 1.8.3
INCLUDEPATH += $(OPIEDIR)/include
DEPENDPATH += $(OPIEDIR)/include
+LIBS += -lopiecore2
@@ -17,6 +19,2 @@ include ( ui/ui.pro )
-MOC_DIR = moc
-OBJECTS_DIR = obj
-
-
!contains( platform, x11 ) {
@@ -29,2 +27 @@ contains( platform, x11 ) {
-LIBS += -lopiecore2