Ignore:
Timestamp:
May 4, 2007 7:25:19 AM (17 years ago)
Author:
bennylp
Message:

Added comments for Symbian sample

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/symbian_ua/main_symbian.cpp

    r1248 r1249  
    1 //Auto-generated file. Please do not modify. 
    2 //#include <e32cmn.h> 
    3  
    4 //#pragma data_seg(".SYMBIAN") 
    5 //__EMULATOR_IMAGE_HEADER2 (0x1000007a,0x00000000,0x00000000,EPriorityForeground,0x00000000u,0x00000000u,0x00000000,0x00000000,0x00000000,0) 
    6 //#pragma data_seg() 
    7  
     1/* $Id$ */ 
     2/*  
     3 * Copyright (C) 2003-2007 Benny Prijono <benny@prijono.org> 
     4 * 
     5 * This program is free software; you can redistribute it and/or modify 
     6 * it under the terms of the GNU General Public License as published by 
     7 * the Free Software Foundation; either version 2 of the License, or 
     8 * (at your option) any later version. 
     9 * 
     10 * This program is distributed in the hope that it will be useful, 
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13 * GNU General Public License for more details. 
     14 * 
     15 * You should have received a copy of the GNU General Public License 
     16 * along with this program; if not, write to the Free Software 
     17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
     18 */ 
    819#include "ua.h" 
    9 #include <stdlib.h> 
    10 #include <pj/errno.h> 
    11 #include <pj/os.h> 
    12 #include <pj/log.h> 
    13 #include <pj/unicode.h> 
    14 #include <stdio.h> 
    1520 
    1621#include <e32std.h> 
    17  
    18 #include <pj/os.h> 
    19  
    2022#include <e32base.h> 
    2123#include <e32std.h> 
    22  
     24#include <stdlib.h> 
    2325 
    2426 
     
    2729 
    2830 
    29 ///////////////////////////////////// 
     31//////////////////////////////////////////////////////////////////////////// 
    3032class MyTask : public CActive 
    3133{ 
     
    8789void MyTask::DoCancel() 
    8890{ 
     91 
    8992} 
     93 
     94//////////////////////////////////////////////////////////////////////////// 
    9095 
    9196LOCAL_C void DoStartL() 
     
    116121//////////////////////////////////////////////////////////////////////////// 
    117122 
    118 //  Global Functions 
     123// E32Main() 
    119124GLDEF_C TInt E32Main() 
    120125{ 
     126    // Mark heap usage 
     127    __UHEAP_MARK; 
     128 
    121129    // Create cleanup stack 
    122     __UHEAP_MARK; 
    123130    CTrapCleanup* cleanup = CTrapCleanup::New(); 
    124131 
     
    131138 
    132139    console->Printf(_L("[press any key to close]\n")); 
    133     //console->Getch(); 
     140    console->Getch(); 
    134141     
    135142    delete console; 
    136143    delete cleanup; 
    137144 
    138     CloseSTDLIB();     
     145    CloseSTDLIB();  
     146 
     147    // Mark end of heap usage, detect memory leaks 
    139148    __UHEAP_MARKEND; 
    140149    return KErrNone; 
Note: See TracChangeset for help on using the changeset viewer.