homescreenapp/stateplugins/hshomescreenstateplugin/inc/hsselectbackgroundstate.h
changeset 51 4785f57bf3d4
parent 46 23b5d6a29cce
equal deleted inserted replaced
46:23b5d6a29cce 51:4785f57bf3d4
    24 #include "hstest_global.h"
    24 #include "hstest_global.h"
    25 #include "hswallpaperimagereader.h"
    25 #include "hswallpaperimagereader.h"
    26 
    26 
    27 HOMESCREEN_TEST_CLASS(HomeScreenStatePluginTest)
    27 HOMESCREEN_TEST_CLASS(HomeScreenStatePluginTest)
    28 
    28 
    29 class QThread;
    29 class HbProgressDialog;
    30 class HbView;
    30 class HbView;
    31 class HbProgressDialog;
       
    32 #ifdef Q_OS_SYMBIAN
    31 #ifdef Q_OS_SYMBIAN
    33 class HsImageFetcherClient;
    32 class HsImageFetcherClient;
    34 #else
    33 #else
    35 class XQAIWGetImageClient;
    34 class XQAIWGetImageClient;
    36 #endif
    35 #endif
    37 class HsImageRender;
       
    38 
    36 
    39 class HsSelectBackgroundState : public QState
    37 class HsSelectBackgroundState : public QState
    40 {
    38 {
    41     Q_OBJECT
    39     Q_OBJECT
    42 
    40 
    44     HsSelectBackgroundState(QState *parent = 0);
    42     HsSelectBackgroundState(QState *parent = 0);
    45     ~HsSelectBackgroundState();
    43     ~HsSelectBackgroundState();
    46 
    44 
    47 private:
    45 private:
    48     Q_DISABLE_COPY(HsSelectBackgroundState)
    46     Q_DISABLE_COPY(HsSelectBackgroundState)
    49 
       
    50     enum ImageProcessingState {
       
    51         NotRunning,
       
    52         ProcessPortraitAsFirst,
       
    53         ProcessLandscapeAsFirst,
       
    54         ProcessPortraitAsSecond,
       
    55         ProcessLandscapeAsSecond,
       
    56         Error
       
    57     };
       
    58 
    47 
    59 signals:
    48 signals:
    60     void event_waitInput();
    49     void event_waitInput();
    61     void handleError();
    50     void handleError();
    62 
    51 
    83 #else
    72 #else
    84     XQAIWGetImageClient *mImageFetcher;
    73     XQAIWGetImageClient *mImageFetcher;
    85 #endif
    74 #endif
    86     
    75     
    87     HbView *mSourceView;
    76     HbView *mSourceView;
    88     QThread *mWallpaperImageReaderThread;
    77     HsWallpaperImageReader *mPortraitWallpaperImageReader;
    89     HsWallpaperImageReader *mWallpaperImageReader;
    78     HsWallpaperImageReader *mLandscapeWallpaperImageReader;
    90     HbProgressDialog *mProgressDialog;
    79     HbProgressDialog *mProgressDialog;
    91     ImageProcessingState mImageProcessingState;
    80     int mRunningThreadAmount;
    92     bool mShowAnimation;
    81     bool mShowAnimation;
    93 
    82 
    94     HOMESCREEN_TEST_FRIEND_CLASS(HomeScreenStatePluginTest)
    83     HOMESCREEN_TEST_FRIEND_CLASS(HomeScreenStatePluginTest)
    95 };
    84 };
    96 
    85