author | zautrix <zautrix> | 2004-10-23 17:33:10 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-23 17:33:10 (UTC) |
commit | 52b6fc17c0dcd1f13f701f698e0305440f26fc3e (patch) (side-by-side diff) | |
tree | b8d374e16c322f413e5809e55c45b8798190791d /kabc/plugins/qtopia/resourceqtopia.cpp | |
parent | 13d274c37baaae48a1c93081077cf3035459c6a8 (diff) | |
download | kdepimpi-52b6fc17c0dcd1f13f701f698e0305440f26fc3e.zip kdepimpi-52b6fc17c0dcd1f13f701f698e0305440f26fc3e.tar.gz kdepimpi-52b6fc17c0dcd1f13f701f698e0305440f26fc3e.tar.bz2 |
qtopia res windows fixes
Diffstat (limited to 'kabc/plugins/qtopia/resourceqtopia.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kabc/plugins/qtopia/resourceqtopia.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kabc/plugins/qtopia/resourceqtopia.cpp b/kabc/plugins/qtopia/resourceqtopia.cpp index 95fa541..99e8618 100644 --- a/kabc/plugins/qtopia/resourceqtopia.cpp +++ b/kabc/plugins/qtopia/resourceqtopia.cpp @@ -17,25 +17,25 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Enhanced Version of the file for platform independent KDE tools. Copyright (c) 2004 Ulf Schenk $Id$ */ #include <sys/types.h> #include <sys/stat.h> -#include <unistd.h> +//#include <unistd.h> #include <qdir.h> #include <qfile.h> #include <qtextstream.h> #include <qfileinfo.h> #include <qregexp.h> //US #include <qtimer.h> #include <kapplication.h> #include <kconfig.h> #include <kdebug.h> #include <klocale.h> @@ -43,31 +43,38 @@ $Id$ #include <kstandarddirs.h> #include <kmessagebox.h> #include "resourceqtopiaconfig.h" #include "stdaddressbook.h" #include "qtopiaconverter.h" #include "resourceqtopia.h" using namespace KABC; + extern "C" +#ifdef _WIN32_ +__declspec(dllexport) +#else { +#endif void *init_microkabc_qtopia() { return new KRES::PluginFactory<ResourceQtopia,ResourceQtopiaConfig>(); } +#ifndef _WIN32_ } +#endif ResourceQtopia::ResourceQtopia( const KConfig *config ) : Resource( config ), mConverter (0) { // we can not choose the filename. Therefore use the default to display QString fileName = QDir::homeDirPath() + "/Applications/addressbook/addressbook.xml"; init( fileName ); } ResourceQtopia::ResourceQtopia( const QString &fileName ) : Resource( 0 ) { |