author | cgandhi |
Thu, 05 Aug 2010 16:35:33 +0530 | |
changeset 16 | b78fa4cdbf2b |
parent 14 | a469c0e6e7fb |
child 17 | 106a4bfcb866 |
permissions | -rw-r--r-- |
6
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
1 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
2 |
* Copyright (c) 2010 Sasken Communication Technologies Ltd. |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
5 |
* under the terms of the "Eclipse Public License v1.0" |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html" |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
8 |
* |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
10 |
* Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
11 |
* |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
12 |
* Contributors: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
13 |
* Manasij Roy, Nalina Hariharan |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
14 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
15 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
16 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
17 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
18 |
#include "displaywidget.h" |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
19 |
#include <QApplication> |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
20 |
#include <QDesktopWidget> |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
21 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
22 |
DisplayWidget::DisplayWidget(QWidget *parent) |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
23 |
: QWidget(parent) |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
24 |
{ |
14
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
25 |
// ui.setupUi(this); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
26 |
// ui.verticalLayout->setGeometry(QApplication::desktop()->availableGeometry()); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
27 |
// //Add item as and when they are implemented |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
28 |
// ui.comboBox_intf->addItem("Contact Fetcher"); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
29 |
// ui.comboBox_intf->addItem("Post Provider"); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
30 |
//// connect(ui.comboBox_intf, |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
31 |
//// SIGNAL(currentIndexChanged(int)), |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
32 |
//// this, |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
33 |
//// SLOT(interfaceSelected(int))); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
34 |
// connect(ui.pushButton_intf,SIGNAL(clicked()),this,SLOT(interfaceSelected())); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
35 |
// connect(ui.pushButton_SP,SIGNAL(clicked()),this,SLOT(serviceProviderSelected())); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
36 |
// connect(ui.pushButton_service,SIGNAL(clicked()),this,SLOT(serviceSelected())); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
37 |
// writeLog("Start"); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
38 |
SmfClient client; |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
39 |
QString intfName("org.symbian.smf.client.contact.fetcher\0.2"); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
40 |
providerList= client.GetServices(intfName); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
41 |
writeLog("GetServices count="); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
42 |
QString c = QString::number(providerList->count()); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
43 |
writeLog(c); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
44 |
SmfProvider smfP(providerList->at(0)); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
45 |
m_contactFetcher = new SmfContactFetcher(&smfP); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
46 |
//connect to appropriate slot |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
47 |
connect(m_contactFetcher, |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
48 |
SIGNAL(friendsListAvailable(SmfContactList*, SmfError , SmfResultPage)), |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
49 |
this, |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
50 |
SLOT(showFriends(SmfContactList*, SmfError , SmfResultPage))); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
51 |
|
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
52 |
writeLog("Before m_contactFetcher->friends="); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
53 |
//request for friends, excluding paging info |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
54 |
m_contactFetcher->friends(); |
6
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
55 |
} |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
56 |
void DisplayWidget::interfaceSelected() |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
57 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
58 |
SmfClient client; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
59 |
QString intfName; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
60 |
switch(ui.comboBox_intf->currentIndex()) |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
61 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
62 |
case 0: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
63 |
intfName = "org.symbian.smf.client.contact.fetcher"; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
64 |
break; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
65 |
case 1: |
14
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
66 |
intfName = "org.symbian.smf.client.contact.posts"; |
6
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
67 |
break; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
68 |
default: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
69 |
//should not reach here!!!! |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
70 |
break; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
71 |
} |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
72 |
writeLog("Before client.GetServices"); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
73 |
providerList= client.GetServices(intfName); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
74 |
ui.comboBox__SP->clear(); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
75 |
//add provider names to the combobox |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
76 |
for(int i=0; i< providerList->count();i++) |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
77 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
78 |
SmfProvider provider = providerList->at(i); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
79 |
ui.comboBox__SP->addItem(provider.serviceName()); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
80 |
} |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
81 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
82 |
//logging for debugging purpose |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
83 |
writeLog("GetServices count="); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
84 |
QString c = QString::number(providerList->count()); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
85 |
writeLog(c); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
86 |
//serviceProviderSelected |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
87 |
// connect(ui.comboBox__SP, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
88 |
// SIGNAL(currentIndexChanged(int)), |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
89 |
// this, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
90 |
// SLOT(serviceProviderSelected(int))); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
91 |
} |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
92 |
void DisplayWidget::serviceProviderSelected() |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
93 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
94 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
95 |
switch(ui.comboBox_intf->currentIndex()) |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
96 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
97 |
case 0: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
98 |
ui.comboBox_service->addItem("Get Friend List"); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
99 |
//ui.comboBox_3->addItem("Get Group List"); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
100 |
break; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
101 |
case 1: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
102 |
ui.comboBox_service->addItem("Get Own Posts"); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
103 |
//ui.comboBox_3->addItem("Get Friend's Posts"); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
104 |
break; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
105 |
} |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
106 |
// connect(ui.comboBox_service, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
107 |
// SIGNAL(currentIndexChanged(int)), |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
108 |
// this, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
109 |
// SLOT(serviceSelected(int))); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
110 |
} |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
111 |
void DisplayWidget::serviceSelected() |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
112 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
113 |
SmfProvider smfP(providerList->at(ui.comboBox_service->currentIndex())); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
114 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
115 |
writeLog("Selected SmfProvider="); |
14
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
116 |
writeLog(smfP.description()); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
117 |
writeLog(smfP.serviceUrl().toString()); |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
118 |
writeLog(smfP.applicationUrl().toString()); |
6
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
119 |
switch(ui.comboBox_intf->currentIndex()) |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
120 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
121 |
case 1: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
122 |
m_postProvider = new SmfPostProvider(&smfP); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
123 |
//TODO:- it should be nested switch case as there are multiple APIs under one interface |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
124 |
//connect to appropriate slot |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
125 |
connect(m_postProvider, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
126 |
SIGNAL(postsAvailable(SmfPostList*, SmfError, SmfResultPage)), |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
127 |
this, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
128 |
SLOT(showPosts(SmfPostList* , SmfError , SmfResultPage ))); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
129 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
130 |
writeLog("Before m_postProvider->posts="); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
131 |
//request for self posts |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
132 |
m_postProvider->posts(); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
133 |
break; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
134 |
case 0: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
135 |
m_contactFetcher = new SmfContactFetcher(&smfP); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
136 |
//connect to appropriate slot |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
137 |
connect(m_contactFetcher, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
138 |
SIGNAL(friendsListAvailable(SmfContactList*, SmfError , SmfResultPage)), |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
139 |
this, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
140 |
SLOT(showFriends(SmfContactList*, SmfError , SmfResultPage))); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
141 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
142 |
writeLog("Before m_contactFetcher->friends="); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
143 |
//request for friends, excluding paging info |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
144 |
m_contactFetcher->friends(); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
145 |
break; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
146 |
} |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
147 |
} |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
148 |
void DisplayWidget::showPosts(SmfPostList* postlist, SmfError error, SmfResultPage resultPage) |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
149 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
150 |
writeLog("TestScreen::showPosts"); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
151 |
ui.listWidget->clear(); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
152 |
ui.listWidget->setVerticalScrollBar(ui.verticalScrollBar_list); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
153 |
writeLog("TestScreen::showPosts count="); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
154 |
writeLog(QString::number(postlist->count())); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
155 |
writeLog("Error="); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
156 |
writeLog(QString::number(error)); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
157 |
if(error) |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
158 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
159 |
QString smferrString("Smf Error code="); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
160 |
smferrString += QString::number(error); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
161 |
QMessageBox::information(this,"Error",smferrString,QMessageBox::Ok); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
162 |
} |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
163 |
//display post description |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
164 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
165 |
foreach(SmfPost post, *postlist) |
14
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
166 |
{ |
6
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
167 |
QString desc = post.description(); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
168 |
ui.listWidget->addItem(desc); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
169 |
} |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
170 |
ui.listWidget->show(); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
171 |
} |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
172 |
void DisplayWidget::showFriends(SmfContactList* frnds, SmfError err, SmfResultPage) |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
173 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
174 |
splash.finish(this); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
175 |
writeLog("TestScreen::showFriends count="); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
176 |
writeLog(QString::number(frnds->count())); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
177 |
writeLog("Error="); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
178 |
writeLog(QString::number(err)); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
179 |
//display friends |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
180 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
181 |
foreach(SmfContact frnd, *frnds) |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
182 |
{ |
14
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
183 |
//lets display only name |
6
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
184 |
QVariant nameVar = frnd.value("Name"); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
185 |
QContactName name = nameVar.value<QContactName>(); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
186 |
QString fname; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
187 |
QString lname; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
188 |
fname = name.firstName(); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
189 |
lname = name.lastName(); |
14
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
190 |
//qDebug()<<fname; |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
191 |
//qDebug()<<lname; |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
192 |
//ui.listWidget->addItem(fname); |
6
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
193 |
} |
14
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
6
diff
changeset
|
194 |
//ui.listWidget->show(); |
6
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
195 |
} |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
196 |
void DisplayWidget::writeLog(QString log) const |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
197 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
198 |
#ifdef WRITE_LOG |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
199 |
QFile file("c:\\data\\SmfClientLogs.txt"); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
200 |
if (!file.open(QIODevice::Append | QIODevice::Text)) |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
201 |
; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
202 |
QTextStream out(&file); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
203 |
out << log << "\n"; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
204 |
file.close(); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
205 |
#endif |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
206 |
} |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
207 |
DisplayWidget::~DisplayWidget() |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
208 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
209 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
210 |
} |