From a1a6a1013eae9a4ca4607f2d656c98821a30f431 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Tue, 24 Feb 2004 20:15:06 +0000 Subject: substitute hack with another hack to enforce LGPL compliance --- (limited to 'libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp') diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp index b569f8b..ffa6a7d 100644 --- a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp +++ b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp @@ -29,13 +29,18 @@ /* * VCard Backend for the OPIE-Contact Database. */ -#include -#include "../../../../library/backend/vobject_p.h" -#include "../../../../library/backend/qfiledirect_p.h" + +#include "vobject_p.h" + +/* OPIE */ +#include #include +//FIXME: Hack to allow direct access to FILE* fh. Rewrite this! +#define protected public #include +#undef protected namespace Opie { @@ -94,7 +99,7 @@ bool OPimContactAccessBackend_VCard::save() if (!m_dirty ) return true; - QFileDirect file( m_file ); + QFile file( m_file ); if (!file.open(IO_WriteOnly ) ) return false; @@ -105,7 +110,7 @@ bool OPimContactAccessBackend_VCard::save() VObject *vo; for(QMap::ConstIterator it=m_map.begin(); it !=m_map.end(); ++it ){ vo = createVObject( *it ); - writeVObject( file.directHandle() , vo ); + writeVObject( file.fh, vo ); //FIXME: HACK!!! cleanVObject( vo ); } cleanStrTbl(); -- cgit v0.9.0.2