Nokia N97 SDK
Example Applications Guide

AudioStreamApp.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : AudioStreamApp.cpp
00004 *  Part of     : AudioStream
00005 *  Created     : April 28, 2006 by Forum Nokia
00006 *  Description : 
00007 *  Version     : 2.0
00008 *
00009 *  Copyright (c) 2006 - 2007 Nokia Corporation.
00010 *  This material, including documentation and any related
00011 *  computer programs, is protected by copyright controlled by
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 // INCLUDE FILES
00017 #include    "AudioStreamApp.h"
00018 #include    "AudioStreamDocument.h"
00019 
00020 #ifdef __SERIES60_3X__
00021 #include        <eikstart.h>
00022 #endif
00023 
00024 
00025 // ----------------------------------------------------------------------------
00026 // CAudioStreamApp::AppDllUid()
00027 //
00028 // returns application UID
00029 // ----------------------------------------------------------------------------
00030 TUid CAudioStreamApp::AppDllUid() const
00031     {
00032     return KUidAudioStream;
00033     }
00034 
00035    
00036 // ----------------------------------------------------------------------------
00037 // CAudioStreamApp::CreateDocumentL()
00038 //
00039 // creates CAudioStreamDocument object
00040 // ----------------------------------------------------------------------------
00041 CApaDocument* CAudioStreamApp::CreateDocumentL()
00042     {
00043     return CAudioStreamDocument::NewL( *this );
00044     }
00045 
00046 
00047 // ----------------------------------------------------------------------------
00048 // NewApplication() 
00049 //
00050 // constructs CAudioStreamApp
00051 // ----------------------------------------------------------------------------
00052 EXPORT_C CApaApplication* NewApplication()
00053     {
00054     return new CAudioStreamApp;
00055     }
00056 
00057 // ---------------------------------------------------------
00058 // Entry point function for Symbian Apps, separate function for
00059 // S60 3rd Ed and 1st/2nd Ed
00060 // ---------------------------------------------------------
00061 //
00062 #ifdef __SERIES60_3X__
00063 GLDEF_C TInt E32Main()
00064         {
00065         return EikStart::RunApplication( NewApplication );
00066         }
00067 
00068 #else
00069 GLDEF_C TInt E32Dll( TDllReason )
00070         {
00071         return KErrNone;
00072         }
00073 #endif
00074 // End of File  
00075 

© Nokia 2009

Back to top