gsprofilesrv_pub/profiles_engine_wrapper_api/inc/MProEngProfileNameArray.h
changeset 0 8c5d936e5675
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsprofilesrv_pub/profiles_engine_wrapper_api/inc/MProEngProfileNameArray.h	Thu Dec 17 08:52:52 2009 +0200
@@ -0,0 +1,88 @@
+/*
+* Copyright (c) 2009 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:  Profile name array interface.
+*
+*/
+
+
+
+#ifndef MPROENGPROFILENAMEARRAY_H
+#define MPROENGPROFILENAMEARRAY_H
+
+//  INCLUDES
+#include <bamdesca.h> // MDesCArray
+
+// FORWARD DECLARATIONS
+class MProEngProfileName;
+class MProEngProfileNameArrayExt;
+
+// CLASS DECLARATION
+
+/**
+*  Profile name array interface.
+*
+*  How to use:
+*  Get profile names array with MProEngEngine::ProfileNameArrayLC().
+*  @code
+*  MProEngProfileNameArray* nameArray =
+*      iProfileEngine->ProfileNameArrayLC();
+*  @endcode
+*
+*  @lib ProfileEngine.lib
+*  @since 3.1
+*/
+class MProEngProfileNameArray : public MDesCArray
+    {
+    public: // New functions
+
+        /**
+        * Return the ID of the profile in the given array index.
+        * @since 3.1
+        * @param aIndex index of the profile.
+        * @return Return the ID of the profile in the given array index.
+        *         KErrNotFound if the index is out of bounds.
+        */
+        virtual TInt ProfileId( TInt aIndex ) const = 0;
+
+        /**
+        * Find profile index by ID of the profile.
+        * @since 3.1
+        * @param aId ID of the profile.
+        * @return Return index of the profile. KErrNotFound if
+        *         profile isn't found.
+        */
+        virtual TInt FindById( TInt aId ) const = 0;
+
+        /**
+        * Find profile index by name of the profile.
+        * @since 3.1
+        * @param aProfileName name of the profile.
+        * @return Return index of the profile. KErrNotFound if
+        *         profile isn't found.
+        */
+        virtual TInt FindByName( const TDesC& aProfileName ) const = 0;
+
+    private: // Extension interface
+
+        /**
+        * This member is internal and not intended for use.
+        */
+        virtual MProEngProfileNameArrayExt* Extension() { return NULL; }
+
+    };
+
+#endif      // MPROENGPROFILENAMEARRAY_H
+
+// End of File
+