summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/irserver.cpp37
-rw-r--r--core/launcher/irserver.h27
2 files changed, 53 insertions, 11 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,8 +1,28 @@
+/**********************************************************************
+** 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>
@@ -13,6 +33,6 @@
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/";
@@ -24,3 +44,3 @@ IrServer::IrServer( QObject *parent, const char *name )
//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;
@@ -48,5 +68,6 @@ IrServer::~IrServer()
{
- if ( iface )
- iface->release();
+ if ( obexIface )
+ obexIface->release();
delete lib;
}
+
diff --git a/core/launcher/irserver.h b/core/launcher/irserver.h
index b3434dd..a20f5e9 100644
--- a/core/launcher/irserver.h
+++ b/core/launcher/irserver.h
@@ -1 +1,21 @@
+/**********************************************************************
+** 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.
+**
+**********************************************************************/
+
#ifndef IRSERVER_H
@@ -3,2 +23,3 @@
+#include <qtopia/global.h>
#include <qobject.h>
@@ -6,4 +27,4 @@
class QCopChannel;
-class QLibrary;
struct ObexInterface;
+class QLibrary;
@@ -17,4 +38,4 @@ public:
private:
- QLibrary *lib;
- ObexInterface *iface;
+ QLibrary* lib;
+ ObexInterface *obexIface;
};