www.pudn.com > Full-Duplex_Audio_Example.rar > fullduplexexapp.cpp


/* 
* ============================================================================= 
*  Name        : FullDuplexExApp.cpp 
*  Part of     : FullDuplexEx 
*  Description : Application Framework | Application class implementation 
                  
*  Version     :  
* 
*  Copyright © 2007 Nokia. All rights reserved. 
*  This material, including documentation and any related  
*  computer programs, is protected by copyright controlled by  
*  Nokia. All rights are reserved. Copying, including  
*  reproducing, storing, adapting or translating, any  
*  or all of this material requires the prior written consent of  
*  Nokia. This material also contains confidential  
*  information which may not be disclosed to others without the  
*  prior written consent of Nokia. 
* ============================================================================= 
*/ 
 
// INCLUDE FILES 
#include "FullDuplexExApp.h" 
#include "FullDuplexExDocument.h" 
 
#ifdef __SERIES60_3X__ 
#include  
#endif 
 
// ================= MEMBER FUNCTIONS ======================= 
 
// --------------------------------------------------------- 
// CFullDuplexExApp::AppDllUid() 
// Returns application UID 
// --------------------------------------------------------- 
// 
TUid CFullDuplexExApp::AppDllUid() const 
    { 
    return KUidFullDuplexEx; 
    } 
 
    
// --------------------------------------------------------- 
// CFullDuplexExApp::CreateDocumentL() 
// Creates CFullDuplexExDocument object 
// --------------------------------------------------------- 
// 
CApaDocument* CFullDuplexExApp::CreateDocumentL() 
    { 
    return CFullDuplexExDocument::NewL( *this ); 
    } 
 
 
// ================= OTHER EXPORTED FUNCTIONS ============== 
// 
// --------------------------------------------------------- 
// NewApplication()  
// Constructs CFullDuplexExApp 
// Returns: created application object 
// --------------------------------------------------------- 
// 
EXPORT_C CApaApplication* NewApplication() 
    { 
    return new CFullDuplexExApp; 
    } 
 
 
// --------------------------------------------------------- 
// E32Dll(TDllReason)  
// Entry point function for EPOC Apps 
// Returns: KErrNone: No error 
// --------------------------------------------------------- 
// 
#ifdef __SERIES60_3X__ 
 
GLDEF_C TInt E32Main() 
    { 
    return EikStart::RunApplication(NewApplication); 
    } 
 
#else 
 
GLDEF_C TInt E32Dll( TDllReason ) 
    { 
    return KErrNone; 
    } 
 
#endif 
 
// End of File