www.pudn.com > nokie_soundplayer.rar > sounddoc.h


/* Copyright (c) 2004, Nokia. All rights reserved */ 
 
 
#ifndef __SOUNDDOC_H__ 
#define __SOUNDDOC_H__ 
 
 
// INCLUDES 
#include  
 
// CLASS DECLARATION 
 
 
/** 
* CSoundDocument 
* An instance of class CSoundDocument is the Document part of the AVKON 
* application framework for the Sound example application 
*/ 
 
class CSoundDocument : public CAknDocument 
    { 
    public: 
 
        /** 
        * NewL 
        * Two-phased constructor. 
        * Construct a CSoundDocument for the AVKON application aApp  
        * using two phase construction, and return a pointer to 
        * the created object 
        * @param aApp application creating this document 
        * @return a pointer to the created instance of CSoundDocument 
        */ 
        static CSoundDocument* NewL( CEikApplication& aApp ); 
 
        /** 
        * NewLC 
        * Two-phased constructor. 
        * Construct a CSoundDocument for the AVKON application aApp  
        * using two phase construction, and return a pointer to  
        * the created object 
        * @param aApp application creating this document 
        * @return a pointer to the created instance of CSoundDocument 
        */ 
        static CSoundDocument* NewLC( CEikApplication& aApp ); 
 
 
    public: // from CAknDocument 
 
        /** 
        * CreateAppUiL  
        * Create a CSoundAppUi object and return a pointer to it 
        * @return  a pointer to the created instance of the AppUi created 
        */ 
        CEikAppUi* CreateAppUiL(); 
 
    private: // Constructors and destructor 
 
        /** 
        * ConstructL. 
        * 2nd phase constructor. 
        */   
        void ConstructL(); 
 
        /** 
        * CSoundDocument. 
        * C++ default constructor. 
        * Perform the first phase of two phase construction  
        * @param aApp application creating this document 
        */ 
        CSoundDocument( CEikApplication& aApp ); 
 
    }; 
 
#endif // __SOUNDDOC_H__ 
 
// End of File