devsound/a3fdevsound/src/mmfaudioserver/mmfaudioserverinterface.cpp
changeset 6 fe9d1bf55678
parent 0 b8ed18f6c07b
equal deleted inserted replaced
5:b220a9341636 6:fe9d1bf55678
    27 // Two-phased constructor.
    27 // Two-phased constructor.
    28 // -----------------------------------------------------------------------------
    28 // -----------------------------------------------------------------------------
    29 //
    29 //
    30 EXPORT_C CAudioSvrLoader* CAudioSvrLoader::NewL()
    30 EXPORT_C CAudioSvrLoader* CAudioSvrLoader::NewL()
    31 	{
    31 	{
    32 	CAudioSvrLoaderImpl* self = new(ELeave) CAudioSvrLoaderImpl();
    32     return CAudioSvrLoader::NewL(EFalse);
    33 	CleanupStack::PushL(self);
       
    34 	self->ConstructL();
       
    35 	CleanupStack::Pop(self);
       
    36 	return self;
       
    37 	}
    33 	}
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 // CAudioSvrLoader::NewL
       
    37 // Two-phased constructor.
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 EXPORT_C CAudioSvrLoader* CAudioSvrLoader::NewL(TBool aStayOpen)
       
    41     {
       
    42     CAudioSvrLoaderImpl* self = new(ELeave) CAudioSvrLoaderImpl();
       
    43     CleanupStack::PushL(self);
       
    44     self->ConstructL(aStayOpen);
       
    45     CleanupStack::Pop(self);
       
    46     return self;
       
    47     }
    38 
    48 
    39 // -----------------------------------------------------------------------------
    49 // -----------------------------------------------------------------------------
    40 // CAudioSvrLoader::CAudioSvrLoader
    50 // CAudioSvrLoader::CAudioSvrLoader
    41 // C++ default constructor can NOT contain any code, that
    51 // C++ default constructor can NOT contain any code, that
    42 // might leave.
    52 // might leave.
    85 // CAudioSvrLoaderImpl::~CAudioSvrLoaderImpl
    95 // CAudioSvrLoaderImpl::~CAudioSvrLoaderImpl
    86 // Destructor
    96 // Destructor
    87 // (other items were commented in a header).
    97 // (other items were commented in a header).
    88 // -----------------------------------------------------------------------------
    98 // -----------------------------------------------------------------------------
    89 //
    99 //
    90  void CAudioSvrLoaderImpl::ConstructL()
   100  void CAudioSvrLoaderImpl::ConstructL(TBool aStayOpen)
    91 	{
   101 	{
    92 	iServer = CMMFAudioServer::NewL();
   102 	iServer = CMMFAudioServer::NewL(aStayOpen);
    93 	}
   103 	}
    94 
   104 
    95 
   105 
    96 // End of file
   106 // End of file
    97 
   107