sftemplateswizard/com.nokia.s60tools.symbianfoundationtemplates/templates/empty_source_template.cpp
changeset 0 61163b28edca
equal deleted inserted replaced
-1:000000000000 0:61163b28edca
       
     1 /*
       
     2 * ============================================================================
       
     3 *  Name        : ?filename.cpp
       
     4 *  Part of     : ?Subsystem_name / ?Module_name
       
     5 *  Description : ?Description
       
     6 *  Version     : %version: %
       
     7 *
       
     8 *  Copyright © ?year-?year ?Company_copyright.
       
     9 *  All rights reserved.
       
    10 *  This component and the accompanying materials are made available
       
    11 *  under the terms of the License "?License"
       
    12 *  which accompanies this distribution, and is available
       
    13 *  at the URL "?LicenseUrl".
       
    14 *
       
    15 *  Initial Contributors:
       
    16 *  ?Company_name - initial contribution.
       
    17 *
       
    18 *  Contributors:
       
    19 *  ?Company_name
       
    20 * ============================================================================
       
    21 * Template version: 4.1
       
    22 */
       
    23 
       
    24 
       
    25 #include <?include_file>
       
    26 
       
    27 #include "?include_file"
       
    28 
       
    29 extern ?external_function( ?arg_type, ?arg_type );
       
    30 
       
    31 const ?type ?constant_var = ?constant;
       
    32 
       
    33 
       
    34 // ======== LOCAL FUNCTIONS ========
       
    35 
       
    36 // ---------------------------------------------------------------------------
       
    37 // ?description
       
    38 // ---------------------------------------------------------------------------
       
    39 //
       
    40 ?type ?function_name( ?arg_type ?arg,
       
    41                       ?arg_type ?arg )
       
    42     {
       
    43     ?code  // ?implementation comment on this line
       
    44     // ?implementation comment on the following statement or block:
       
    45     ?code
       
    46     }
       
    47 
       
    48 
       
    49 // ======== MEMBER FUNCTIONS ========
       
    50 
       
    51 
       
    52 // ---------------------------------------------------------------------------
       
    53 // ?description_if_needed
       
    54 // ---------------------------------------------------------------------------
       
    55 //
       
    56 ?classname::?classname()
       
    57     {
       
    58     if ( ?condition )
       
    59         {
       
    60         // ?implementation_comment
       
    61         ?code
       
    62         }
       
    63     else
       
    64         {
       
    65         // ?implementation_comment
       
    66         ?code
       
    67         }
       
    68 
       
    69     // ?implementation_comment
       
    70     while ( ?condition )
       
    71         {
       
    72         ?code
       
    73         }
       
    74 
       
    75     // ?implementation_comment
       
    76     for ( ?for_init_statement; ?condition; ?expression )
       
    77         {
       
    78         ?code
       
    79         }
       
    80 
       
    81     // ?implementation_comment
       
    82     switch ( ?condition )
       
    83         {
       
    84         case ?constant:
       
    85             ?code
       
    86             break;
       
    87         case ?constant:
       
    88             ?code
       
    89             // fall-through intended here
       
    90         case ?constant:
       
    91             ?code
       
    92             break;
       
    93         default:
       
    94             ?code
       
    95             break;
       
    96         }
       
    97     }
       
    98 
       
    99 
       
   100 // ---------------------------------------------------------------------------
       
   101 // ?description_if_needed
       
   102 // ---------------------------------------------------------------------------
       
   103 //
       
   104 void ?classname::ConstructL()
       
   105     {
       
   106     ?code
       
   107     }
       
   108 
       
   109 
       
   110 // ---------------------------------------------------------------------------
       
   111 // ?description_if_needed
       
   112 // ---------------------------------------------------------------------------
       
   113 //
       
   114 EXPORT_C ?classname* ?classname::NewL()
       
   115     {
       
   116     ?classname* self = ?classname::NewLC();
       
   117     CleanupStack::Pop( self );
       
   118     return self;
       
   119     }
       
   120 
       
   121 
       
   122 // ---------------------------------------------------------------------------
       
   123 // ?description_if_needed
       
   124 // ---------------------------------------------------------------------------
       
   125 //
       
   126 EXPORT_C ?classname* ?classname::NewLC()
       
   127     {
       
   128     ?classname* self = new( ELeave ) ?classname;
       
   129     CleanupStack::PushL( self );
       
   130     self->ConstructL();
       
   131     return self;
       
   132     }
       
   133 
       
   134 
       
   135 // ---------------------------------------------------------------------------
       
   136 // ?description_if_needed
       
   137 // ---------------------------------------------------------------------------
       
   138 //
       
   139 ?classname::~?classname()
       
   140     {
       
   141     ?code
       
   142     }
       
   143 
       
   144 
       
   145 // ---------------------------------------------------------------------------
       
   146 // ?implementation_description
       
   147 // ---------------------------------------------------------------------------
       
   148 //
       
   149 ?EXPORT_C ?type ?classname::?member_function(
       
   150     ?really_really_really_really_long_arg_type_1 ?really_really_long_arg_1,
       
   151     ?really_really_really_really_long_arg_type_2 ?really_really_long_arg_2 )
       
   152     {
       
   153     ?code
       
   154     }
       
   155 
       
   156 
       
   157 // ---------------------------------------------------------------------------
       
   158 // From class ?base_class.
       
   159 // ?implementation_description
       
   160 // ---------------------------------------------------------------------------
       
   161 //
       
   162 ?EXPORT_C ?type ?function_name( ?arg_type_1 ?arg_1, ?arg_type_2 ?arg_2 )
       
   163     {
       
   164     ?code
       
   165     }
       
   166 
       
   167 
       
   168 // ======== GLOBAL FUNCTIONS ========
       
   169 
       
   170 // ---------------------------------------------------------------------------
       
   171 // Constructs and returns an application object.
       
   172 // ---------------------------------------------------------------------------
       
   173 //
       
   174 EXPORT_C CApaApplication* NewApplication()
       
   175     {
       
   176     return new ?CMyApplication;
       
   177     }
       
   178 
       
   179 
       
   180 // ---------------------------------------------------------------------------
       
   181 // Main function of the application executable.
       
   182 // ---------------------------------------------------------------------------
       
   183 //
       
   184 GLDEF_C TInt E32Main()
       
   185     {
       
   186     return EikStart::RunApplication( NewApplication );
       
   187     }