voicerecorder/AppSrc/CVRAppServer.cpp
branchRCL_3
changeset 20 072a5fa0c63b
parent 19 2f5c9ee7098c
child 21 c6bafb5162d8
equal deleted inserted replaced
19:2f5c9ee7098c 20:072a5fa0c63b
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *     This class is part of new file service framework.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include	<NewFileService.hrh>
       
    21 #include    <NewFileServiceDefs.h>
       
    22 #include	"CVRNewFileService.h"
       
    23 #include	"CVRAppServer.h"
       
    24 
       
    25 CApaAppServiceBase* CVRAppServer::CreateServiceL( TUid aServiceType ) const
       
    26 	{
       
    27 	if ( aServiceType == TUid::Uid( NEWSERVICEUID ) )
       
    28 		{
       
    29 		CVRNewFileService* service = CVRNewFileService::NewL();
       
    30 		iNewFileServiceObserver = service;
       
    31 		return service;
       
    32 		}
       
    33 	else
       
    34 		{
       
    35 		return CAknAppServer::CreateServiceL(aServiceType);
       
    36 		}
       
    37 	}
       
    38 
       
    39 MNewFileServiceObserver* CVRAppServer::NewFileServiceObserver() const
       
    40 	{
       
    41 	return iNewFileServiceObserver;
       
    42 	}
       
    43 
       
    44 // End of File