sapi_mediamanagement/tsrc/dev/tmediamgmtprovidertest/inc/mediamgmt.h
changeset 0 14df0fbfcc4e
equal deleted inserted replaced
-1:000000000000 0:14df0fbfcc4e
       
     1 /*
       
     2 * Copyright (c) 2002 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 the License "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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MEDIAMGMT_H
       
    22 #define MEDIAMGMT_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <StifLogger.h>
       
    26 #include <TestScripterInternal.h>
       
    27 #include <StifTestModule.h>
       
    28 #include <liwcommon.h>
       
    29 #include <liwserviceifbase.h>
       
    30 
       
    31 
       
    32 
       
    33 
       
    34 
       
    35 _LIT( KMediaMgmtLogPath, "\\logs\\testframework\\MediaMgmt\\" ); 
       
    36 // Log file
       
    37 _LIT( KMediaMgmtLogFile, "MediaMgmt.txt" ); 
       
    38 _LIT( KResultFile, "Result.txt" ); 
       
    39 
       
    40 // FUNCTION PROTOTYPES
       
    41 //?type ?function_name(?arg_list);
       
    42 
       
    43 // FORWARD DECLARATIONS
       
    44 //class ?FORWARD_CLASSNAME;
       
    45 
       
    46 
       
    47 class CMediaMgmt;
       
    48 
       
    49 // DATA TYPES
       
    50 //enum ?declaration
       
    51 //typedef ?declaration
       
    52 //extern ?data_type;
       
    53 
       
    54 // CLASS DECLARATION
       
    55 
       
    56 /**
       
    57 *  CMediaMgmt test class for STIF Test Framework TestScripter.
       
    58 *  ?other_description_lines
       
    59 *
       
    60 *  @lib ?library
       
    61 *  @since ?Series60_version
       
    62 */
       
    63 NONSHARABLE_CLASS(CMediaMgmt) : public CScriptBase 
       
    64     {
       
    65     public:  // Constructors and destructor
       
    66 
       
    67         /**
       
    68         * Two-phased constructor.
       
    69         */
       
    70         static CMediaMgmt* NewL( CTestModuleIf& aTestModuleIf );
       
    71 
       
    72         /**
       
    73         * Destructor.
       
    74         */
       
    75         virtual ~CMediaMgmt();
       
    76 
       
    77     public: // New functions
       
    78 
       
    79         /**
       
    80         * ?member_description.
       
    81         * @since ?Series60_version
       
    82         * @param ?arg1 ?description
       
    83         * @return ?description
       
    84         */
       
    85         //?type ?member_function( ?type ?arg1 );
       
    86 
       
    87     public: // Functions from base classes
       
    88 
       
    89         /**
       
    90         * From CScriptBase Runs a script line.
       
    91         * @since ?Series60_version
       
    92         * @param aItem Script line containing method name and parameters
       
    93         * @return Symbian OS error code
       
    94         */
       
    95         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    96 
       
    97     protected:  // New functions
       
    98 
       
    99         /**
       
   100         * ?member_description.
       
   101         * @since ?Series60_version
       
   102         * @param ?arg1 ?description
       
   103         * @return ?description
       
   104         */
       
   105         //?type ?member_function( ?type ?arg1 );
       
   106 
       
   107     protected:  // Functions from base classes
       
   108 
       
   109         /**
       
   110         * From ?base_class ?member_description
       
   111         */
       
   112         //?type ?member_function();
       
   113 
       
   114     private:
       
   115 
       
   116         /**
       
   117         * C++ default constructor.
       
   118         */
       
   119         CMediaMgmt( CTestModuleIf& aTestModuleIf );
       
   120 
       
   121         /**
       
   122         * By default Symbian 2nd phase constructor is private.
       
   123         */
       
   124         void ConstructL();
       
   125 
       
   126         // Prohibit copy constructor if not deriving from CBase.
       
   127         // ?classname( const ?classname& );
       
   128         // Prohibit assigment operator if not deriving from CBase.
       
   129         // ?classname& operator=( const ?classname& );
       
   130 
       
   131         /**
       
   132         * Frees all resources allocated from test methods.
       
   133         * @since ?Series60_version
       
   134         */
       
   135         void Delete();
       
   136 
       
   137         /**
       
   138         * Test methods are listed below. 
       
   139         */
       
   140 
       
   141         /**
       
   142         * Example test method.
       
   143         * @since ?Series60_version
       
   144         * @param aItem Script line containing parameters.
       
   145         * @return Symbian OS error code.
       
   146         */
       
   147         
       
   148         
       
   149         virtual TInt InterfaceClassL( CStifItemParser& aItem );
       
   150         
       
   151 
       
   152     public:     // Data
       
   153         // ?one_line_short_description_of_data
       
   154         //?data_declaration;
       
   155 
       
   156     protected:  // Data
       
   157         // ?one_line_short_description_of_data
       
   158         //?data_declaration;
       
   159 
       
   160     private:    // Data
       
   161         
       
   162         // ?one_line_short_description_of_data
       
   163         //?data_declaration;
       
   164 
       
   165         // Reserved pointer for future extension
       
   166         //TAny* iReserved;
       
   167 
       
   168     public:     // Friend classes
       
   169         //?friend_class_declaration;
       
   170     protected:  // Friend classes
       
   171         //?friend_class_declaration;
       
   172     private:    // Friend classes
       
   173         //?friend_class_declaration;
       
   174         friend TInt GetFilesAsynchL( TAny *aCStifItemParser ); 
       
   175 
       
   176     };
       
   177     
       
   178 struct ParamPass
       
   179     {
       
   180     	CStifItemParser* it;
       
   181     	CStifLogger *log; 
       
   182     	//TInt CmdId ; // 0 for GetFiles and 1 GetFilesInfo
       
   183     	
       
   184     };
       
   185         
       
   186     
       
   187     
       
   188 class Callback : public MLiwNotifyCallback   
       
   189 {
       
   190 	struct ParamPass *arg;
       
   191 	public:
       
   192 	
       
   193 	Callback(ParamPass *aArg):arg(aArg)
       
   194 	{
       
   195 		
       
   196 	}
       
   197 	TInt HandleNotifyL(TInt aCmdId,TInt aEventId,CLiwGenericParamList& aEventParamList,const CLiwGenericParamList& aInParamList);
       
   198         
       
   199 };
       
   200 TInt ThreadFunction (TAny *a);    
       
   201 TInt GetFilesAsynchL( TAny *ParamPass );    
       
   202 
       
   203 #endif      // MEDIAMGMT_H
       
   204 
       
   205 // End of File