gssettingsuis/Gs/tsrc/public/basic/GSBackgroundImage/T_GSBackgroundImage.h
branchRCL_3
changeset 24 8ee96d21d9bf
parent 23 8bda91a87a00
child 25 7e0eff37aedb
equal deleted inserted replaced
23:8bda91a87a00 24:8ee96d21d9bf
     1 /*
       
     2 * Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __T_GSBACKGROUNDIMAGE_H__
       
    20 #define __T_GSBACKGROUNDIMAGE_H__
       
    21 
       
    22 //  EXTERNAL INCLUDES
       
    23 #include <CEUnitTestSuiteClass.h>
       
    24 #include <EUnitDecorators.h>
       
    25 #include <BackgroundImage.h>
       
    26 #include <f32file.h>
       
    27 #include <GsAsyncImageHandling.h>
       
    28 #include <MGsAsyncImageHandlingObserver.h>
       
    29 
       
    30 //  INTERNAL INCLUDES
       
    31 //#include "BackgroundImage.cpp"
       
    32 
       
    33 //  FORWARD DECLARATIONS
       
    34 
       
    35 
       
    36 //  CLASS DEFINITION
       
    37 NONSHARABLE_CLASS( T_GSBackgroundImage )
       
    38 	: public CEUnitTestSuiteClass,
       
    39 	  public MGSAsyncImageHandlingObserver
       
    40     {
       
    41     public:     // Constructors and destructors
       
    42 
       
    43         /**
       
    44          * Two phase construction
       
    45          */
       
    46         static T_GSBackgroundImage* NewL();
       
    47         static T_GSBackgroundImage* NewLC();
       
    48         /**
       
    49          * Destructor
       
    50          */
       
    51         ~T_GSBackgroundImage();
       
    52         
       
    53     public: //From MGSAsyncImageHandlingObserver
       
    54         void ImageHandlingCompleteL( TInt aError );
       
    55 
       
    56     private:    // Constructors and destructors
       
    57 
       
    58         T_GSBackgroundImage();
       
    59         void ConstructL();
       
    60 
       
    61     private:    // New methods
       
    62 
       
    63          void EmptySetupL();
       
    64          
       
    65          void EmptyTeardown();
       
    66         
       
    67          void Teardown();
       
    68         
       
    69          void SetupBackgroundImageL();
       
    70          void SetupBackgroundImageAndAsyncHandlerL();
       
    71          
       
    72          void T_Global_BackgroundImage_NewL();
       
    73          void T_Global_BackgroundImage_GetPlnsStatus();
       
    74          void T_Global_BackgroundImage_BackgroundImageL();
       
    75          void T_Global_BackgroundImage_SetBackgroundImageL();
       
    76          void T_Global_BackgroundImage_SetBackgroundImagePathL();
       
    77          void T_Global_BackgroundImage_SetBackgroundImagePath2L();
       
    78          void T_Global_BackgroundImage_SetBackgroundImagePath3L();
       
    79          void T_Global_BackgroundImage_CreateImageHandlingAsyncObjectL();
       
    80          void T_Global_BackgroundImage_SetWelcomeNoteImageL();
       
    81          void T_Global_BackgroundImage_SetVtStillImagePathL();
       
    82          void T_Global_BackgroundImage_IsPersonalisationApplicationL();
       
    83          void T_Global_BackgroundImage_DeleteImageL();
       
    84         
       
    85 
       
    86     private:    // Data
       
    87 		
       
    88         CGSBackgroundImage* iCGSBackgroundImage;
       
    89         CGSAsyncImageHandling* iImgHandler;
       
    90         RFs iFs;
       
    91         EUNIT_DECLARE_TEST_TABLE; 
       
    92 
       
    93     };
       
    94 
       
    95 #endif      //  __T_GSBACKGROUNDIMAGE_H__
       
    96 
       
    97 // End of file