-rw-r--r-- | libopie/pim/ocontactaccess.cpp | 8 | ||||
-rw-r--r-- | libopie2/opiepim/core/ocontactaccess.cpp | 8 |
2 files changed, 14 insertions, 2 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 | |||
@@ -22,4 +22,7 @@ | |||
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 |
@@ -62,5 +65,8 @@ OContactAccess::OContactAccess ( const QString appname, const QString filename, | |||
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 */ |
@@ -83,5 +89,5 @@ OContactAccess::~OContactAccess () | |||
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 | ||
diff --git a/libopie2/opiepim/core/ocontactaccess.cpp b/libopie2/opiepim/core/ocontactaccess.cpp index 2d808f7..8a8ff08 100644 --- a/libopie2/opiepim/core/ocontactaccess.cpp +++ b/libopie2/opiepim/core/ocontactaccess.cpp | |||
@@ -22,4 +22,7 @@ | |||
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 |
@@ -62,5 +65,8 @@ OContactAccess::OContactAccess ( const QString appname, const QString filename, | |||
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 */ |
@@ -83,5 +89,5 @@ OContactAccess::~OContactAccess () | |||
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 | ||