services/terminalmodeservice/inc/upnpremotableappstore.h
branchRCL_3
changeset 9 5c72fd91570d
equal deleted inserted replaced
5:8116cc943311 9:5c72fd91570d
       
     1 /**
       
     2 * Copyright (c) 2010 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: CUpnpRemotableAppStore class declaration
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __UPNPREMOTABLEAPPSTORE_H__
       
    19 #define __UPNPREMOTABLEAPPSTORE_H__
       
    20 
       
    21 #include "upnpremotableapp.h"
       
    22 
       
    23 /**
       
    24 * Container class for all the remotable applications which have been registered 
       
    25 * with the terminal mode service. It provides an easy access to the list of remotable apps
       
    26 */
       
    27 class CUpnpRemotableAppStore : public CBase
       
    28     {
       
    29 public:
       
    30     static CUpnpRemotableAppStore* NewL();
       
    31 	void AddRemotableAppL( CUpnpRemotableApp* aApp );
       
    32 	TInt RemoveRemotableApp( TUint aAppId );
       
    33 	~CUpnpRemotableAppStore();
       
    34 	CUpnpRemotableApp& FetchRemotableApp( TInt aAppIndex )const;
       
    35 	const RArray<TUint>& AppIdArray()const;
       
    36 
       
    37 private:
       
    38 	CUpnpRemotableAppStore();
       
    39 	
       
    40 private:
       
    41 	RPointerArray<CUpnpRemotableApp>   iRemotableAppArray;
       
    42 	RArray<TUint>                      iAppIdArray;
       
    43     };
       
    44 
       
    45 
       
    46 #endif  // __UPNPREMOTABLEAPPSTORE_H__