homescreenapp/hsdomainmodel/src/hsshortcutservice.cpp
changeset 55 03646e8da489
parent 46 23b5d6a29cce
child 60 30f14686fb04
equal deleted inserted replaced
51:4785f57bf3d4 55:03646e8da489
    66 }
    66 }
    67 
    67 
    68 HsShortcutService *HsShortcutService::instance(QStateMachine *stateMachine)
    68 HsShortcutService *HsShortcutService::instance(QStateMachine *stateMachine)
    69 {
    69 {
    70     if (!mInstance && stateMachine) {
    70     if (!mInstance && stateMachine) {
    71         mInstance.reset(new HsShortcutService(stateMachine));
    71         mInstance = new HsShortcutService(stateMachine);
    72     }
    72     }
    73     return mInstance.data();
    73     return mInstance;
    74 }
    74 }
    75 
    75 
    76 HsShortcutService::~HsShortcutService()
    76 HsShortcutService::~HsShortcutService()
    77 {
    77 {
    78 }
    78 }
    92     : QObject(parent)
    92     : QObject(parent)
    93 {
    93 {
    94     mD.reset(new HsShortcutServicePrivate(stateMachine));
    94     mD.reset(new HsShortcutServicePrivate(stateMachine));
    95 }
    95 }
    96 
    96 
    97 QScopedPointer<HsShortcutService> HsShortcutService::mInstance(0);
    97 HsShortcutService *HsShortcutService::mInstance(0);