homescreenapp/stateplugins/hshomescreenstateplugin/src/hshomescreenstateplugin.cpp
changeset 51 4785f57bf3d4
parent 35 f9ce957a272c
equal deleted inserted replaced
46:23b5d6a29cce 51:4785f57bf3d4
    20 #include <qservicecontext.h>
    20 #include <qservicecontext.h>
    21 
    21 
    22 #include "hshomescreenstateplugin.h"
    22 #include "hshomescreenstateplugin.h"
    23 #include "hsloadscenestate.h"
    23 #include "hsloadscenestate.h"
    24 #include "hsidlestate.h"
    24 #include "hsidlestate.h"
       
    25 #include "hsrootstate.h"
       
    26 #include "hsbackuprestorestate.h"
    25 
    27 
    26 #ifdef COVERAGE_MEASUREMENT
    28 #ifdef COVERAGE_MEASUREMENT
    27 #pragma CTC SKIP
    29 #pragma CTC SKIP
    28 #endif //COVERAGE_MEASUREMENT
    30 #endif //COVERAGE_MEASUREMENT
    29 
    31 
    38     Q_UNUSED(context);
    40     Q_UNUSED(context);
    39     Q_UNUSED(session);
    41     Q_UNUSED(session);
    40 
    42 
    41     if (descriptor.interfaceName() == QLatin1String("com.nokia.homescreen.state.HsLoadSceneState")) {
    43     if (descriptor.interfaceName() == QLatin1String("com.nokia.homescreen.state.HsLoadSceneState")) {
    42         return new HsLoadSceneState();
    44         return new HsLoadSceneState();
    43     } else if(descriptor.interfaceName() == QLatin1String("com.nokia.homescreen.state.HsIdleState")) {
    45     }
       
    46     else if(descriptor.interfaceName() == QLatin1String("com.nokia.homescreen.state.HsIdleState")) {
    44         return new HsIdleState();
    47         return new HsIdleState();
    45     } else {
    48     } 
       
    49     else if(descriptor.interfaceName() == QLatin1String("com.nokia.homescreen.state.HsRootState")) {
       
    50         return new HsRootState();
       
    51     }
       
    52     else if(descriptor.interfaceName() == QLatin1String("com.nokia.homescreen.state.HsBackupRestoreState")) {
       
    53         return new HsBackupRestoreState();
       
    54     }else {
    46         return 0;
    55         return 0;
    47     }
    56     }
    48 }
    57 }
    49 
    58 
    50 Q_EXPORT_PLUGIN2(hshomescreenstateplugin, HsHomeScreenStatePlugin)
    59 Q_EXPORT_PLUGIN2(hshomescreenstateplugin, HsHomeScreenStatePlugin)