From b0b173498acde27957f8ed9297bb2ed2346eb700 Mon Sep 17 00:00:00 2001 From: eilers Date: Sun, 10 Nov 2002 15:41:53 +0000 Subject: Bugfixes.. --- (limited to 'libopie/pim') diff --git a/libopie/pim/ocontactaccessbackend_vcard.cpp b/libopie/pim/ocontactaccessbackend_vcard.cpp index 903c0b7..013f3af 100644 --- a/libopie/pim/ocontactaccessbackend_vcard.cpp +++ b/libopie/pim/ocontactaccessbackend_vcard.cpp @@ -1,6 +1,7 @@ /* * VCard Backend for the OPIE-Contact Database. * + * Copyright (C) 2000 Trolltech AS. All rights reserved. * Copyright (c) 2002 by Stefan Eilers (Eilers.Stefan@epost.de) * * ===================================================================== @@ -16,6 +17,9 @@ * ===================================================================== * History: * $Log$ + * Revision 1.2 2002/11/10 15:41:53 eilers + * Bugfixes.. + * * Revision 1.1 2002/11/09 14:34:52 eilers * Added VCard Backend. * @@ -31,7 +35,9 @@ OContactAccessBackend_VCard::OContactAccessBackend_VCard ( QString , QString filename = 0l ): m_dirty( false ), m_file( filename ) -{} +{ + load(); +} bool OContactAccessBackend_VCard::load () @@ -86,11 +92,9 @@ bool OContactAccessBackend_VCard::save() VObject *vo; for(QMap::ConstIterator it=m_map.begin(); it !=m_map.end(); ++it ){ vo = createVObject( *it ); - addVObjectProp( obj, vo ); + writeVObject( file.directHandle() , vo ); + cleanVObject( vo ); } - writeVObject( file.directHandle() , obj ); - cleanVObject( obj ); - cleanStrTbl(); m_dirty = false; @@ -166,6 +170,10 @@ bool OContactAccessBackend_VCard::hasQuerySettings (uint ) const return false; // No search possible, therefore all settings invalid ;) } +bool OContactAccessBackend_VCard::wasChangedExternally() +{ + return false; // Don't expect concurrent access +} // *** Private stuff *** diff --git a/libopie/pim/ocontactaccessbackend_vcard.h b/libopie/pim/ocontactaccessbackend_vcard.h index c1422b0..177ec24 100644 --- a/libopie/pim/ocontactaccessbackend_vcard.h +++ b/libopie/pim/ocontactaccessbackend_vcard.h @@ -1,6 +1,7 @@ /* * VCard Backend for the OPIE-Contact Database. * + * Copyright (C) 2000 Trolltech AS. All rights reserved. * Copyright (c) 2002 by Stefan Eilers (Eilers.Stefan@epost.de) * * ===================================================================== @@ -16,6 +17,9 @@ * ===================================================================== * History: * $Log$ + * Revision 1.2 2002/11/10 15:41:53 eilers + * Bugfixes.. + * * Revision 1.1 2002/11/09 14:34:52 eilers * Added VCard Backend. * @@ -49,6 +53,7 @@ class OContactAccessBackend_VCard : public OContactAccessBackend { const uint querySettings(); bool hasQuerySettings (uint querySettings) const; + bool wasChangedExternally(); private: OContact parseVObject( VObject* obj ); -- cgit v0.9.0.2