summaryrefslogtreecommitdiff
path: root/core/launcher/irserver.cpp
authorzecke <zecke>2003-08-28 14:35:37 (UTC)
committer zecke <zecke>2003-08-28 14:35:37 (UTC)
commitf837944e9a404c46efc00e4d5851ea13dbb88ef2 (patch) (side-by-side diff)
treeaa1276a41b80d3f42cab855fbcebf9ec48d1795a /core/launcher/irserver.cpp
parent3f829e499bac92d52a9bbb1ad6b31bb74734287f (diff)
downloadopie-f837944e9a404c46efc00e4d5851ea13dbb88ef2.zip
opie-f837944e9a404c46efc00e4d5851ea13dbb88ef2.tar.gz
opie-f837944e9a404c46efc00e4d5851ea13dbb88ef2.tar.bz2
Make it compile with opie ( use QLibrary )
Diffstat (limited to 'core/launcher/irserver.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/irserver.cpp37
1 files changed, 29 insertions, 8 deletions
diff --git a/core/launcher/irserver.cpp b/core/launcher/irserver.cpp
index 625cb60..579c78c 100644
--- a/core/launcher/irserver.cpp
+++ b/core/launcher/irserver.cpp
@@ -1,20 +1,40 @@
+/**********************************************************************
+** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
+**
+** This file is part of the Qtopia Environment.
+**
+** This file may be distributed and/or modified under the terms of the
+** GNU General Public License version 2 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.
+**
+** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+**
+** See http://www.trolltech.com/gpl/ for GPL licensing information.
+**
+** Contact info@trolltech.com if any conditions of this licensing are
+** not clear to you.
+**
+**********************************************************************/
+
+
#include "irserver.h"
-#include <qpe/qlibrary.h>
-#include <qpe/qpeapplication.h>
+#include <qtopia/qlibrary.h>
+#include <qtopia/qpeapplication.h>
#include <qtranslator.h>
-#include <stdlib.h>
#include "obexinterface.h"
#include <qdir.h>
IrServer::IrServer( QObject *parent, const char *name )
- : QObject( parent, name )
+ : QObject( parent, name ), obexIface(0)
{
lib = 0;
- iface = 0;
+ obexIface = 0;
QString path = QPEApplication::qpeDir() + "/plugins/obex/";
QDir dir( path, "lib*.so" );
QStringList list = dir.entryList();
@@ -22,7 +42,7 @@ IrServer::IrServer( QObject *parent, const char *name )
for ( it = list.begin(); it != list.end(); ++it ) {
QLibrary *trylib = new QLibrary( path + *it );
//qDebug("trying lib %s", (path + (*it)).latin1() );
- if ( trylib->queryInterface( IID_ObexInterface, (QUnknownInterface**)&iface ) == QS_OK ) {
+ if ( trylib->queryInterface( IID_ObexInterface, (QUnknownInterface**)&obexIface ) == QS_OK ) {
lib = trylib;
//qDebug("found obex lib" );
QString lang = getenv( "LANG" );
@@ -46,7 +66,8 @@ IrServer::IrServer( QObject *parent, const char *name )
IrServer::~IrServer()
{
- if ( iface )
- iface->release();
+ if ( obexIface )
+ obexIface->release();
delete lib;
}
+