--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/smf/smfservermodule/smfclient/client/smfclient_p.h Tue May 18 17:37:12 2010 +0530
@@ -0,0 +1,85 @@
+/**
+ * Copyright (c) 2010 Sasken Communication Technologies Ltd.
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of the "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html"
+ *
+ * Initial Contributors:
+ * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
+ *
+ * Contributors:
+ * Manasij Roy, Nalina Hariharan
+ */
+
+#ifndef SMFCLIENT_P_H_
+#define SMFCLIENT_P_H_
+
+#include "smfprovider.h"
+#include "SmfObserver.h"
+#include <QObject>
+#include <QDateTime>
+#include <QStringList>
+#include "smfclient.h"
+#include "smfclientglobal.h"
+#include "smfglobal.h"
+#ifdef Q_OS_SYMBIAN
+#include "smfclientsymbian.h"
+#else
+class SmfClientQt;
+#endif
+
+/**
+ * Private Qt wrapper
+ * Provided to accomodate diff facilities in diff platforms.
+ * Uses Symbian client-server for Symbian
+ * QDbus for linux
+ * QLocalserver for rest of the platforms
+ * Note:- only symbian client-server impl is provided at the moment
+ */
+class SmfClientPrivate : public smfObserver
+{
+ Q_OBJECT
+
+public:
+
+ /**
+ * Constructs SmfClientPrivate
+ * @param client SmfClient instance, so that it can directly emit SmfClient's signal
+ */
+ SmfClientPrivate(SmfClient* client=0);
+ ~SmfClientPrivate(){};
+public:
+ /**
+ * Corresponds to SmfClient::GetServices(const QString )
+ */
+ QList<SmfProvider>* GetServices(const QString serviceName);
+ /**
+ * From smfobserver.
+ * This callback is invoked when requested result is available from
+ * other components of Smf (specially from plugin manager).
+ * @param result Parsed and serialized result.
+ * @param opcode Request code.
+ * @param error Error
+ */
+ void resultsAvailable(QByteArray result,SmfRequestTypeID opcode,SmfError error);
+private:
+ QList<SmfProvider>* m_baseProvider;
+ //serialized byte array of provider
+ QByteArray m_providerSerialized;
+#ifdef Q_OS_SYMBIAN
+ CSmfClientSymbian* m_SmfClientPrivate;
+ friend class CSmfClientSymbian;
+#else
+ SmfClientQt* m_SmfClientPrivate;
+ friend class SmfClientQt;
+#endif
+ bool m_connected;
+ SmfClient* m_client;
+ //debugging only
+ void writeLog(QString log) const;
+
+};
+
+#endif /* SMFCLIENT_P_H_ */