menucontentsrv/srvinc/menusvrsuite.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Definition of menu item attribute
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MENUSUITE_H_
       
    19 #define MENUSUITE_H_
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 class CSuiteObject;
       
    24 
       
    25 NONSHARABLE_CLASS( RMenuSrvSuiteArray ) : public RPointerArray<CSuiteObject>
       
    26     {
       
    27 
       
    28 public:
       
    29 
       
    30 	/**
       
    31 	 * Find suite by name.
       
    32 	 * @param aSuiteName suite name.
       
    33 	 * @return TInt, possition in array if attribute was found, KErrNotFound if not found.
       
    34 	 */
       
    35 	TInt FindLastSuite( const TDesC& aSuiteName );
       
    36 
       
    37 	/**
       
    38 	 * Find suite by file name.
       
    39 	 * @param aSuiteName suite name.
       
    40 	 * @return TInt, possition in array if attribute was found, KErrNotFound if not found.
       
    41 	 */
       
    42 	TInt FindByFile( const TDesC& aFileName );
       
    43 
       
    44 	/*
       
    45 	 * Chech if Suite exists
       
    46 	 * */
       
    47 	TBool Exist( const TDesC& aSuiteName );
       
    48  
       
    49     /**
       
    50     * Remove attributes by suite name.
       
    51     * @param aId Id.
       
    52     */ 
       
    53     void RemoveByFileName( const TDesC& aFileName  );
       
    54     
       
    55     
       
    56     /**
       
    57     * Append new item.
       
    58     */
       
    59     TInt Append(const CSuiteObject* anEntry);
       
    60 
       
    61   };
       
    62 
       
    63 /**
       
    64 * Push a ResetAndDestroy() on the cleanup stack.
       
    65 * @param aArray Array.
       
    66 */
       
    67 void CleanupResetAndDestroyPushL( RMenuSrvSuiteArray& aArray );
       
    68 
       
    69 #endif /* MENUSUITE_H_ */