controlpanelui/src/cpplugins/profileactivatorplugin/src/cpprofileactivatorentryitem.cpp
equal
deleted
inserted
replaced
37 { |
37 { |
38 delete mProfileModel; |
38 delete mProfileModel; |
39 } |
39 } |
40 void CpProfileActivatorEntryItem::onLaunchView() |
40 void CpProfileActivatorEntryItem::onLaunchView() |
41 { |
41 { |
42 QScopedPointer<CpProfileActivatorDialog> dialog |
42 CpProfileActivatorDialog *dialog = |
43 (new CpProfileActivatorDialog(this, *mProfileModel)); |
43 new CpProfileActivatorDialog(this, *mProfileModel); |
44 dialog->exec(); |
44 dialog->setAttribute(Qt::WA_DeleteOnClose); |
45 // //launch media fetcher |
45 // dialog->open(this, SLOT(ultimateDialogSlot(HbAction*))); |
46 // if (!mReq) |
46 dialog->show(); |
47 // { |
|
48 // mReq = mAppMgr.create("com.nokia.services.media.Music", "fetch(QString)", true); |
|
49 // |
|
50 // if (!mReq) |
|
51 // { |
|
52 // return; |
|
53 // } |
|
54 // else |
|
55 // { |
|
56 // connect(mReq, SIGNAL(requestOk(const QVariant&)), SLOT(handleOk(const QVariant&))); |
|
57 // connect(mReq, SIGNAL(requestError(int,const QString&)), SLOT(handleError(int,const QString&))); |
|
58 // } |
|
59 // } |
|
60 // |
|
61 // // Set arguments for request (music fetcher application title) |
|
62 // QList<QVariant> args; |
|
63 // args << QVariant( text() ); |
|
64 // mReq->setArguments(args); |
|
65 // |
|
66 // // Make the request |
|
67 // if (!mReq->send()) |
|
68 // { |
|
69 // //report error |
|
70 // return; |
|
71 // } |
|
72 |
47 |
73 } |
48 } |
74 /*void CpPersonalizationEntryItemData::handleOk(const QVariant &result) |
49 /*void CpPersonalizationEntryItemData::handleOk(const QVariant &result) |
75 { |
50 { |
76 if (!result.canConvert<QString>()) |
51 if (!result.canConvert<QString>()) |