camerauis/cameraapp/generic/src/CamServer.cpp
author Fionntina Carville <fionntinac@symbian.org>
Fri, 12 Nov 2010 18:52:18 +0000
branchRCL_3
changeset 69 a2232ad2df6d
parent 0 1ddebce53859
permissions -rw-r--r--
Update xhtml.zip with mappings.

/*
* 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 <e32cmn.h>
#include <barsread2.h>

#include <NewFileService.hrh>
#include <NewFileServiceDefs.h>
#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