idlehomescreen/inc/xntype.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     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:  Hand-made RTTI type object.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CXNTYPE_H
       
    21 #define CXNTYPE_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS
       
    27 //const ?type ?constant_var = ?constant;
       
    28 
       
    29 // MACROS
       
    30 //#define ?macro ?macro_def
       
    31 
       
    32 // DATA TYPES
       
    33 //enum ?declaration
       
    34 //typedef ?declaration
       
    35 //extern ?data_type;
       
    36 
       
    37 // FUNCTION PROTOTYPES
       
    38 //?type ?function_name(?arg_list);
       
    39 
       
    40 // FORWARD DECLARATIONS
       
    41 //class ?FORWARD_CLASSNAME;
       
    42 // CLASS DECLARATION
       
    43 
       
    44 /**
       
    45 * @ingroup group_xnutils
       
    46 * 
       
    47 *  Hand-made RTTI type object.
       
    48 *  @since Series 60 3.1
       
    49 */
       
    50 class CXnType : public CBase
       
    51     {
       
    52     public:  // Constructors and destructor
       
    53         
       
    54         /**
       
    55         * Two-phased constructor.
       
    56         * @param aType Type identifier
       
    57         */
       
    58         IMPORT_C static CXnType* NewL(const TDesC8& aType);
       
    59 
       
    60         /**
       
    61         * Destructor.
       
    62         */
       
    63         IMPORT_C virtual ~CXnType();
       
    64         
       
    65     public: // New functions
       
    66         
       
    67         /**
       
    68         * Get the type identifier
       
    69         * @since Series 60 3.1
       
    70         * @return Type identifier
       
    71         */
       
    72 		IMPORT_C const TDesC8& Type();
       
    73 
       
    74 
       
    75     public: // Functions from base classes
       
    76 
       
    77         /**
       
    78         * From ?base_class ?member_description.
       
    79         * @since Series ?XX ?SeriesXX_version
       
    80         * @param ?arg1 ?description
       
    81         * @return ?description
       
    82         */
       
    83         //?type ?member_function( ?type ?arg1 );
       
    84         
       
    85     protected:  // New functions
       
    86         
       
    87         /**
       
    88         * ?member_description.
       
    89         * @since Series ?XX ?SeriesXX_version
       
    90         * @param ?arg1 ?description
       
    91         * @return ?description
       
    92         */
       
    93         //?type ?member_function( ?type ?arg1 );
       
    94 
       
    95 
       
    96 
       
    97     protected:  // Functions from base classes
       
    98         
       
    99         /**
       
   100         * C++ default constructor. Protected in order to allow for derivation.
       
   101         */
       
   102         IMPORT_C CXnType();
       
   103 
       
   104         /**
       
   105         * 2nd phase constructor. Protected in order to allow for derivation.
       
   106         * @param aType Type identifier
       
   107         */
       
   108         IMPORT_C void ConstructL(const TDesC8& aType);
       
   109 
       
   110         /**
       
   111         * From ?base_class ?member_description
       
   112         */
       
   113         //?type ?member_function();
       
   114 
       
   115 
       
   116     private:
       
   117 
       
   118 
       
   119         // Prohibit copy constructor if not deriving from CBase.
       
   120         // ?classname( const ?classname& );
       
   121         // Prohibit assigment operator if not deriving from CBase.
       
   122         // ?classname& operator=( const ?classname& );
       
   123 
       
   124 
       
   125     public:     // Data
       
   126         // ?one_line_short_description_of_data
       
   127         //?data_declaration;
       
   128     
       
   129     protected:  // Data
       
   130         // ?one_line_short_description_of_data
       
   131         //?data_declaration;
       
   132 
       
   133     private:    // Data
       
   134         // ?one_line_short_description_of_data
       
   135         //?data_declaration;
       
   136         // Reserved pointer for future extension
       
   137         //TAny* iReserved;
       
   138         // Type identifier
       
   139         const TDesC8* iType;
       
   140     public:     // Friend classes
       
   141         //?friend_class_declaration;
       
   142     protected:  // Friend classes
       
   143         //?friend_class_declaration;
       
   144     private:    // Friend classes
       
   145         //?friend_class_declaration;
       
   146 
       
   147     };
       
   148 
       
   149 #endif      // CXnTYPE_H
       
   150             
       
   151 // End of File