applicationmanagement/tsrc/tarmappmng/inc/TestDmDDFObject.h
changeset 47 d316aecb87fd
parent 0 3ce708148e4d
equal deleted inserted replaced
46:b9b00b134b0d 47:d316aecb87fd
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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: Implementation of applicationmanagement components
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __TESTDMDDFOBJECT_H
       
    21 #define __TESTDMDDFOBJECT_H
       
    22 
       
    23 //  INCLUDES
       
    24 //#include <?include_file>
       
    25 #include <smldmadapter.h>
       
    26 
       
    27 // CONSTANTS
       
    28 //const ?type ?constant_var = ?constant;
       
    29 
       
    30 // MACROS
       
    31 //#define ?macro ?macro_def
       
    32 
       
    33 // DATA TYPES
       
    34 //enum ?declaration
       
    35 //typedef ?declaration
       
    36 //extern ?data_type;
       
    37 
       
    38 // FUNCTION PROTOTYPES
       
    39 //?type ?function_name(?arg_list);
       
    40 
       
    41 // FORWARD DECLARATIONS
       
    42 class CStifLogger;
       
    43 
       
    44 // CLASS DECLARATION
       
    45 
       
    46 /**
       
    47 *  ?one_line_short_description.
       
    48 *  ?other_description_lines
       
    49 *
       
    50 *  @lib ?library
       
    51 *  @since Series ?XX ?SeriesXX_version
       
    52 */
       
    53 class CTestDmDDFObject : public CBase, public MSmlDmDDFObject
       
    54     {
       
    55     public:  // Constructors and destructor
       
    56         
       
    57         /**
       
    58         * Two-phased constructor.
       
    59         */
       
    60         static CTestDmDDFObject* NewL( CStifLogger *aLog );
       
    61         static CTestDmDDFObject* NewLC( CStifLogger *aLog );
       
    62         
       
    63         /**
       
    64         * Destructor.
       
    65         */
       
    66         virtual ~CTestDmDDFObject();
       
    67 
       
    68     public: // New functions
       
    69         
       
    70         /**
       
    71         * ?member_description.
       
    72         * @since Series ?XX ?SeriesXX_version
       
    73         * @param ?arg1 ?description
       
    74         * @return ?description
       
    75         */
       
    76         //?type ?member_function( ?type ?arg1 );
       
    77 
       
    78 		virtual void SetNameL( const TDesC8& aName );
       
    79 		
       
    80 		void DumpL( const TDesC8& aParentName, TBool aFullDump = ETrue );
       
    81 		void ExternalizeL(RWriteStream& aStream) const;
       
    82 		
       
    83 		
       
    84 
       
    85     public: // Functions from base classes
       
    86     
       
    87 //sf-    *********************************
       
    88     
       
    89 		void SetAccessTypesL( TSmlDmAccessTypes aAccessTypes );
       
    90 		void SetDefaultValueL( const TDesC8& aDefaultValue );
       
    91 		void SetDescriptionL( const TDesC8& aDescription );
       
    92 		void SetDFFormatL( TDFFormat aFormat );
       
    93 		void SetOccurenceL( TOccurence aOccurence );
       
    94 		void SetScopeL( TScope aScope );
       
    95 		void SetDFTitleL( const TDesC8& aTitle );
       
    96 		void AddDFTypeMimeTypeL( const TDesC8& aMimeType );
       
    97 		void SetAsObjectGroup();
       
    98 		MSmlDmDDFObject& AddChildObjectL(const TDesC8& aNodeName);
       
    99 		MSmlDmDDFObject& AddChildObjectGroupL();
       
   100 
       
   101 //sf-    #############################
       
   102 
       
   103 		const TDesC8& Name();
       
   104 		TSmlDmAccessTypes  AccessTypes();
       
   105 		const TDesC8& DefaultValue();
       
   106 		const TDesC8& Description();
       
   107 		TDFFormat DFFormat();
       
   108 		TOccurence Occurence();
       
   109 		TScope Scope();
       
   110 		const TDesC8& DFTitle();
       
   111 		const TDesC8& DFTypeMimeType();
       
   112 		TBool ObjectGroup();
       
   113 		
       
   114 		TInt ChildObjectCount();
       
   115 		CTestDmDDFObject& ChildObject( TInt aIndex );
       
   116 
       
   117 		CTestDmDDFObject* FindChildObject( const TDesC8& aName );
       
   118 		TInt SubObjectsCount();
       
   119 
       
   120 
       
   121     protected:  // New functions
       
   122         
       
   123         /**
       
   124         * ?member_description.
       
   125         * @since Series ?XX ?SeriesXX_version
       
   126         * @param ?arg1 ?description
       
   127         * @return ?description
       
   128         */
       
   129         //?type ?member_function( ?type ?arg1 );
       
   130 
       
   131     protected:  // Functions from base classes
       
   132         
       
   133         /**
       
   134         * From ?base_class ?member_description
       
   135         */
       
   136         //?type ?member_function();
       
   137 
       
   138     private:
       
   139 
       
   140         /**
       
   141         * C++ default constructor.
       
   142         */
       
   143         CTestDmDDFObject( CStifLogger *aLog );
       
   144 
       
   145         /**
       
   146         * By default Symbian 2nd phase constructor is private.
       
   147         */
       
   148         void ConstructL();
       
   149 
       
   150         // Prohibit copy constructor if not deriving from CBase.
       
   151         // CTestDmDDFObject( const CTestDmDDFObject& );
       
   152         // Prohibit assigment operator if not deriving from CBase.
       
   153         // CTestDmDDFObject& operator=( const CTestDmDDFObject& );
       
   154 
       
   155     public:     // Data
       
   156         // ?one_line_short_description_of_data
       
   157         //?data_declaration;
       
   158     
       
   159     protected:  // Data
       
   160         // ?one_line_short_description_of_data
       
   161         //?data_declaration;
       
   162 
       
   163     private:    // Data
       
   164         // ?one_line_short_description_of_data
       
   165         //?data_declaration;
       
   166 		HBufC8* iName;
       
   167 
       
   168 		TSmlDmAccessTypes iAccessTypes;
       
   169 		HBufC8* iDefaultValue;
       
   170 		HBufC8* iDescription;
       
   171 		TDFFormat iFormat;
       
   172 		TOccurence iOccurence;
       
   173 		TScope iScope;
       
   174 		HBufC8* iTitle;
       
   175 		HBufC8* iMimeType;
       
   176 		TBool iObjectGroup;
       
   177 		
       
   178 		RPointerArray<CTestDmDDFObject> iChildren;
       
   179 
       
   180          
       
   181         // Reserved pointer for future extension
       
   182         //TAny* iReserved;
       
   183 
       
   184     public:     // Friend classes
       
   185         //?friend_class_declaration;
       
   186     protected:  // Friend classes
       
   187         //?friend_class_declaration;
       
   188     private:    // Friend classes
       
   189         //?friend_class_declaration;
       
   190         /**
       
   191         * Logger.
       
   192         */
       
   193         CStifLogger*    iLog;
       
   194 
       
   195     };
       
   196 
       
   197 #endif      // __TESTDMDDFOBJECT_H
       
   198             
       
   199 // End of File