equal
deleted
inserted
replaced
24 |
24 |
25 #include <QStateMachine> |
25 #include <QStateMachine> |
26 #include <QState> |
26 #include <QState> |
27 #include <QFinalState> |
27 #include <QFinalState> |
28 #include <QDebug> |
28 #include <QDebug> |
29 |
29 #include <QTime> |
30 #include <hbmainwindow.h> |
30 #include <hbmainwindow.h> |
31 |
31 |
32 |
32 |
33 |
33 |
34 // plugin factory const |
34 // plugin factory const |
96 // --------------------------------------------------------------------------- |
96 // --------------------------------------------------------------------------- |
97 // |
97 // |
98 void FtuDefaultRuntime::createGuiServiceParts() |
98 void FtuDefaultRuntime::createGuiServiceParts() |
99 { |
99 { |
100 mWindow = new HbMainWindow(); |
100 mWindow = new HbMainWindow(); |
|
101 QDEBUG("FtuDefaultRuntime Window created"<<__FUNCTION__<<"~~~~~~~"<<QTime::currentTime().toString("hh:mm:ss.zzz");) |
101 mWindow->show(); |
102 mWindow->show(); |
|
103 QDEBUG("FtuDefaultRuntime Window Shown"<<__FUNCTION__<<"~~~~~~~"<<QTime::currentTime().toString("hh:mm:ss.zzz");) |
102 } |
104 } |
103 |
105 |
104 // --------------------------------------------------------------------------- |
106 // --------------------------------------------------------------------------- |
105 // FtuDefaultRuntime::createStates() |
107 // FtuDefaultRuntime::createStates() |
106 // --------------------------------------------------------------------------- |
108 // --------------------------------------------------------------------------- |
186 QList<QVariant> services = state->property(FTU_SERVICES_REGISTRATION_KEY).toList(); |
188 QList<QVariant> services = state->property(FTU_SERVICES_REGISTRATION_KEY).toList(); |
187 |
189 |
188 foreach (const QVariant& service, services) |
190 foreach (const QVariant& service, services) |
189 { |
191 { |
190 QString name = service.toString(); |
192 QString name = service.toString(); |
191 qDebug() << "Assign service:" << name << "\n to " << state->objectName(); |
193 QDEBUG("Assign service:" << name << "\n to " << state->objectName();) |
192 if (name == FTU_CONTENT_SERVICE_KEY) |
194 if (name == FTU_CONTENT_SERVICE_KEY) |
193 { |
195 { |
194 state->setProperty(name.toAscii().data(), qVariantFromValue(mFtuContentService)); |
196 state->setProperty(name.toAscii().data(), qVariantFromValue(mFtuContentService)); |
195 } |
197 } |
196 else |
198 else |
197 { |
199 { |
198 qWarning() << "WARNING: Service " << name << " is unknown"; |
200 QDEBUG("WARNING: Service " << name << " is unknown";) |
199 } |
201 } |
200 } |
202 } |
201 } |
203 } |
202 } |
204 } |
203 |
205 |