os/mm/mmplugins/cameraplugins/source/mmcameraclientplugin/mmcameraserver/src/mmcameraserver.h
Update contrib.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
21 #ifndef MMCAMERASERVER_H
22 #define MMCAMERASERVER_H
24 #include "mmcameraclientinterface.h"
25 #include "mmcameraserverpolicymanager.h"
27 const TInt KECamServMajorVerNumber = 0;
28 const TInt KECamServMinorVerNumber = 0;
29 const TInt KECamServBuildVerNumber = KUidMMCameraServerID;
31 class CMMCameraServerController;
32 class CMMCameraServerControllerQuery;
33 class CMMCameraServerShutdown;
36 * Standard server class derived from CServer2 to construct the server and manage connecting clients.
38 * Also creates policy manager and camera controller to be used by client sessions.
40 class CMMCameraServer : CServer2
42 friend class CMMCameraServerSession;
45 static CMMCameraServer* NewLC(); //symbian doc says CServer2 should be returned ???
52 inline CMMCameraServerPolicyManager* PolicyManager() {return iPolicyManager;};
55 virtual TInt RunError(TInt aError);
58 CMMCameraServer(); // Named Constructor Idiom concept used
62 CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
63 void PanicClient(const RMessage2& aMessage, TServerPanic aPanic);
65 void GetCameraControllerL(TInt aCameraIndex, CMMCameraServerController*& aCameraController);
66 void GetCameraControllerQueryL(CMMCameraServerControllerQuery*& aCameraControllerQuery);
69 TInt iCamSessionCount;
71 TDblQue<CMMCameraServerController> iCamControllerQ; //Double link list of CMMCameraServerController
72 CMMCameraServerPolicyManager* iPolicyManager;
73 CMMCameraServerShutdown* iShutdown;
76 #endif // MMCAMERASERVER_H