summaryrefslogtreecommitdiff
path: root/libopie
authoreilers <eilers>2002-10-02 16:18:11 (UTC)
committer eilers <eilers>2002-10-02 16:18:11 (UTC)
commit1400bbe439c47f0bd168d602d961235c638a861b (patch) (unidiff)
tree2612a28330ee6b48d6f06b476448cee66308c9f3 /libopie
parent140d28d0fd72015616351702f085ca9f0c9a959c (diff)
downloadopie-1400bbe439c47f0bd168d602d961235c638a861b.zip
opie-1400bbe439c47f0bd168d602d961235c638a861b.tar.gz
opie-1400bbe439c47f0bd168d602d961235c638a861b.tar.bz2
debugged and seems to work almost perfectly ..
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/ocontactaccess.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/libopie/pim/ocontactaccess.cpp b/libopie/pim/ocontactaccess.cpp
index 2d808f7..8a8ff08 100644
--- a/libopie/pim/ocontactaccess.cpp
+++ b/libopie/pim/ocontactaccess.cpp
@@ -21,6 +21,9 @@
21 * ===================================================================== 21 * =====================================================================
22 * History: 22 * History:
23 * $Log$ 23 * $Log$
24 * Revision 1.2 2002/10/02 16:18:11 eilers
25 * debugged and seems to work almost perfectly ..
26 *
24 * Revision 1.1 2002/09/27 17:11:44 eilers 27 * Revision 1.1 2002/09/27 17:11:44 eilers
25 * Added API for accessing the Contact-Database ! It is compiling, but 28 * Added API for accessing the Contact-Database ! It is compiling, but
26 * please do not expect that anything is working ! 29 * please do not expect that anything is working !
@@ -61,7 +64,10 @@ OContactAccess::OContactAccess ( const QString appname, const QString filename,
61 if( end == 0 ) { 64 if( end == 0 ) {
62 end = new OContactAccessBackend_XML( appname, filename ); 65 end = new OContactAccessBackend_XML( appname, filename );
63 } 66 }
67 // Set backend locally and in template
64 m_backEnd = end; 68 m_backEnd = end;
69 OPimAccessTemplate<OContact>::setBackEnd (end);
70
65 71
66 /* Connect signal of external db change to function */ 72 /* Connect signal of external db change to function */
67 QCopChannel *dbchannel = new QCopChannel( "QPE/PIM", this ); 73 QCopChannel *dbchannel = new QCopChannel( "QPE/PIM", this );
@@ -82,7 +88,7 @@ OContactAccess::~OContactAccess ()
82 */ 88 */
83 if ( m_changed ) 89 if ( m_changed )
84 save(); 90 save();
85 delete m_backEnd; 91 // delete m_backEnd; is done by template..
86} 92}
87 93
88bool OContactAccess::load() 94bool OContactAccess::load()