www.pudn.com > S60_Platform_Bluetooth_OBEX_Example.rar > btobjectexchangedocument.cpp


/* Copyright (c) 2004, Nokia. All rights reserved */ 
 
 
// INCLUDE FILES 
#include "BTObjectExchangeAppUi.h" 
#include "BTObjectExchangeDocument.h" 
 
// ============================ MEMBER FUNCTIONS =============================== 
 
// ----------------------------------------------------------------------------- 
// CBTObjectExchangeDocument::NewL()  
// Two-phased constructor. 
// ----------------------------------------------------------------------------- 
// 
CBTObjectExchangeDocument* CBTObjectExchangeDocument 
::NewL( CEikApplication& aApp ) 
    { 
    CBTObjectExchangeDocument* self = NewLC( aApp ); 
    CleanupStack::Pop( self ); 
    return self; 
    } 
 
// ----------------------------------------------------------------------------- 
// CBTObjectExchangeDocument::NewLC()  
// Two-phased constructor. 
// ----------------------------------------------------------------------------- 
// 
CBTObjectExchangeDocument* CBTObjectExchangeDocument 
::NewLC( CEikApplication& aApp ) 
    { 
    CBTObjectExchangeDocument* self =  
        new ( ELeave ) CBTObjectExchangeDocument( aApp ); 
    CleanupStack::PushL( self ); 
    self->ConstructL(); 
    return self; 
    } 
 
// ---------------------------------------------------------------------------- 
// CBTObjectExchangeDocument::ConstructL() 
// 2nd phase construction 
// ---------------------------------------------------------------------------- 
// 
void CBTObjectExchangeDocument::ConstructL() 
    { 
    // no implementation required 
    }     
 
// ---------------------------------------------------------------------------- 
// CBTObjectExchangeDocument::CBTObjectExchangeDocument() 
// Constructor. 
// ---------------------------------------------------------------------------- 
// 
CBTObjectExchangeDocument::CBTObjectExchangeDocument( CEikApplication& aApp ) 
: CAknDocument( aApp )  
    { 
    // no implementation required 
    }    
 
// ---------------------------------------------------------------------------- 
// CBTObjectExchangeDocument::~CBTObjectExchangeDocument() 
// Destructor. 
// ---------------------------------------------------------------------------- 
// 
CBTObjectExchangeDocument::~CBTObjectExchangeDocument() 
    { 
    // no implementation required 
    } 
 
// ---------------------------------------------------------------------------- 
// CBTObjectExchangeDocument::CreateAppUiL() 
// Create the application user interface, and return a pointer to it; 
// the framework takes ownership of this object. 
// ---------------------------------------------------------------------------- 
// 
CEikAppUi* CBTObjectExchangeDocument::CreateAppUiL() 
    { 
    CEikAppUi* appUi = new ( ELeave ) CBTObjectExchangeAppUi; 
    return appUi; 
    } 
 
// End of File