2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Array utility class for listing pre-known ProviderIDs
25 #ifndef SEN_IDENTITY_PROVIDER_ID_ARRAY_8_H
26 #define SEN_IDENTITY_PROVIDER_ID_ARRAY_8_H
32 #include <MSenIdentityProviderIdArray.h>
37 * Array utility class for listing pre-known ProviderIDs
38 * Typical use of this class is to define a strict list
39 * of ProviderIDs pointing to certain IDPs, which are to
40 * be accepted as only suitable services when initiating
41 * an new service connection.
42 * Other possiblity is to instantiate a non-strict array,
43 * which only acts as "recommendation" of those Identity
44 * Providers, that should be first checked when initiating
45 * new service connection. In such case, because it is a
46 * non-strict list, also other IDPs may be used, if none
47 * matching with this "recommendation" is found.
48 * @lib SenServDesc.lib
51 class CSenIdentityProviderIdArray8 : public CDesC8ArraySeg,
52 public MSenIdentityProviderIdArray
54 public: // Constructors and destructor
57 * Constructor with no arguments create non-strict arrays..
60 IMPORT_C static CSenIdentityProviderIdArray8* NewL();
63 * Constructor with no arguments create non-strict arrays..
66 IMPORT_C static CSenIdentityProviderIdArray8* NewLC();
69 * Basic constructor with a default value for iStrict.
71 * @param aStrict the value to be set to iStrict
73 IMPORT_C static CSenIdentityProviderIdArray8* NewL(const TBool aStrict);
76 * Basic constructor with a default value for iStrict.
78 * @param aStrict the value to be set to iStrict
80 IMPORT_C static CSenIdentityProviderIdArray8* NewLC(const TBool aStrict);
85 IMPORT_C virtual ~CSenIdentityProviderIdArray8();
87 // Functions from base classes
89 // From MSenIdentityProviderIdArray
94 * @return ETrue if iStrict is true, otherwise EFalse
96 IMPORT_C virtual TBool IsStrict() const;
100 * @since Series60 3.0
101 * @param aStrict the value to be set to iStrict
103 IMPORT_C void SetStrict(TBool aStrict);
105 protected: // New functions
108 * C++ default constructor.
110 CSenIdentityProviderIdArray8(const TBool aStrict);
113 * Default 2nd phase constructor
114 * @since Series60 3.0
122 #endif // SEN_IDENTITY_PROVIDER_ID_ARRAY_8_H