devsound/a3fdevsound/src/mmfaudioserver/mmfaudioserver.h
changeset 6 fe9d1bf55678
parent 0 b8ed18f6c07b
equal deleted inserted replaced
5:b220a9341636 6:fe9d1bf55678
    57 	@lib MmfAudioServer.exe
    57 	@lib MmfAudioServer.exe
    58 */
    58 */
    59 class CMMFAudioServer : public CMmfIpcServer, public MGlobalProperties
    59 class CMMFAudioServer : public CMmfIpcServer, public MGlobalProperties
    60 	{
    60 	{
    61 public:
    61 public:
    62 
    62 	
    63 	/**
    63 	/**
    64 		Constructs, and returns a pointer to, a new CMMFAudioServer
    64         Constructs, and returns a pointer to, a new CMMFAudioServer
    65 		object.
    65         object.
    66 		@return CMMFAudioServer* A pointer to newly created object.
    66         @param aStayOpen whether or not the server should stay open permanently
    67 	*/
    67         @return CMMFAudioServer* A pointer to newly created object.
    68 	static CMMFAudioServer* NewL();
    68     */
       
    69 	static CMMFAudioServer* NewL(TBool aStayOpen);
    69 
    70 
    70 	/**
    71 	/**
    71 		Destructor.
    72 		Destructor.
    72 	*/
    73 	*/
    73 	~CMMFAudioServer();
    74 	~CMMFAudioServer();
   165 		CDelayAudioServerShutDown();
   166 		CDelayAudioServerShutDown();
   166 		//Second phase contructor.
   167 		//Second phase contructor.
   167 		void ConstructL();
   168 		void ConstructL();
   168 
   169 
   169 		RTimer iShutDownTimer;
   170 		RTimer iShutDownTimer;
       
   171 		
   170 		};
   172 		};
   171 
   173 
   172 private:
   174 private:
   173 
   175 	
   174 	
   176 	CMMFAudioServer(TBool aStayOpen);
   175 	//Default constructor.
       
   176 	
       
   177 	CMMFAudioServer();
       
   178 
   177 
   179 	
   178 	
   180 	//Second phase constructor.
   179 	//Second phase constructor.
   181 
   180 
   182 	void ConstructL();
   181 	void ConstructL();
   192 	CDelayAudioServerShutDown* iDelayAudioServerShutDown;
   191 	CDelayAudioServerShutDown* iDelayAudioServerShutDown;
   193 	// Array of DevSound server monitor objects.
   192 	// Array of DevSound server monitor objects.
   194 	mutable RPointerArray<CStartAndMonitorDevSoundThread> iDevSoundServList;
   193 	mutable RPointerArray<CStartAndMonitorDevSoundThread> iDevSoundServList;
   195 	
   194 	
   196 	CMMFAudioServerFactory* iFactory;
   195 	CMMFAudioServerFactory* iFactory;
       
   196 	//if the server is to stay open permanently
       
   197 	TBool iStayOpen;
   197 	};
   198 	};
   198 
   199 
   199 /**
   200 /**
   200 	A utility class to monitor the DevSound server state.
   201 	A utility class to monitor the DevSound server state.
   201 	This class is used by Audio Server to monitor the state of DevSound server
   202 	This class is used by Audio Server to monitor the state of DevSound server