diff -r 61bc0f252b2b -r bac7acad7cb3 camerauis/cameraapp/generic/src/CamServer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/camerauis/cameraapp/generic/src/CamServer.cpp Wed Sep 01 12:30:54 2010 +0100 @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Main application server class.* +*/ + + +// INCLUDE FILES +#include "CamServer.h" +#include +#include + +#include +#include +#include "CamNewFileService.h" + +#include "CamUtility.h" + + +// ================= MEMBER FUNCTIONS ======================= + +// --------------------------------------------------------------------------- +// CCamAppServer::CreateServiceL +// Creates new file service object. +// --------------------------------------------------------------------------- +// +CApaAppServiceBase* CCamAppServer::CreateServiceL(TUid aServiceType) const + { + if ( aServiceType == TUid::Uid( NEWSERVICEUID ) )// Service UID + { + PRINT( _L( "Camera: CCamAppServer:CreateServiceL()" ) ); + CCamNewFileService* service = CCamNewFileService::NewL(); + iNewFileServiceObserver = service; + return service; + } + else + { + return CAknAppServer::CreateServiceL(aServiceType); + } + } + +// --------------------------------------------------------------------------- +// CCamAppServer::NewFileServiceObserver +// Returns pointer to new file sevice object. +// --------------------------------------------------------------------------- +// +MNewFileServiceObserver* CCamAppServer::NewFileServiceObserver() const + { + return iNewFileServiceObserver; + } + +// End of File +