- Timestamp:
- May 4, 2007 7:25:19 AM (18 years ago)
- 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 */ 8 19 #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>15 20 16 21 #include <e32std.h> 17 18 #include <pj/os.h>19 20 22 #include <e32base.h> 21 23 #include <e32std.h> 22 24 #include <stdlib.h> 23 25 24 26 … … 27 29 28 30 29 ///////////////////////////////////// 31 //////////////////////////////////////////////////////////////////////////// 30 32 class MyTask : public CActive 31 33 { … … 87 89 void MyTask::DoCancel() 88 90 { 91 89 92 } 93 94 //////////////////////////////////////////////////////////////////////////// 90 95 91 96 LOCAL_C void DoStartL() … … 116 121 //////////////////////////////////////////////////////////////////////////// 117 122 118 // Global Functions123 // E32Main() 119 124 GLDEF_C TInt E32Main() 120 125 { 126 // Mark heap usage 127 __UHEAP_MARK; 128 121 129 // Create cleanup stack 122 __UHEAP_MARK;123 130 CTrapCleanup* cleanup = CTrapCleanup::New(); 124 131 … … 131 138 132 139 console->Printf(_L("[press any key to close]\n")); 133 //console->Getch();140 console->Getch(); 134 141 135 142 delete console; 136 143 delete cleanup; 137 144 138 CloseSTDLIB(); 145 CloseSTDLIB(); 146 147 // Mark end of heap usage, detect memory leaks 139 148 __UHEAP_MARKEND; 140 149 return KErrNone;
Note: See TracChangeset
for help on using the changeset viewer.