2 * Copyright (c) 2002 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.
15 * Declaration of the CApNetworkItem class.
20 #ifndef CAPNETWORKITEM_H
21 #define CAPNETWORKITEM_H
23 // Deprecation warning
24 #warning This header file has been deprecated. Will be removed in one of the next SDK releases.
29 #include <ApEngineVer.h>
30 #include <ApEngineConsts.h>
34 * Representation of a Network item.
36 NONSHARABLE_CLASS( CApNetworkItem ) :public CBase
37 ///< This class is used to hold
38 ///< the main information of a
40 ///< It is used in CApNetworks.
42 public: // Constructors and destructor
45 * Two-phased constructor. Leaves on failure, places instance
47 * @return The constructed CApNetworkItem.
51 IMPORT_C static CApNetworkItem* NewLC();
55 * Two-phased constructor. Leaves on failure, places instance
57 * @param aItem a pointer to a CApNetworkItem.
58 * @return The constructed CApNetworkItem.
62 IMPORT_C static CApNetworkItem* NewLC( CApNetworkItem* aItem );
70 IMPORT_C virtual ~CApNetworkItem();
74 * Copies the data from another CApNetworkItem
75 * Substitutes the "Assignment operator."
76 * @return No return value.
80 IMPORT_C void CopyFromL( const CApNetworkItem& aCopyFrom );
83 private: // Constructors
85 * C++ default constructor.
89 IMPORT_C CApNetworkItem();
93 * Second-phase constructor.
95 * @param aName The name
99 IMPORT_C void ConstructL( TUint32 aUid,
105 * Second-phase constructor.
109 IMPORT_C void ConstructL();
112 public: // New functions
115 * Gets the name of the network group
116 * Ownership of the returned text is not passed.
117 * @return The name of the network group
121 IMPORT_C const TDesC& Name() const;
125 * Gets the UID of this network group
126 * @return The UID of this network group
130 IMPORT_C TUint32 Uid() const;
135 * Sets a UID of the network group.
136 * @param aUid a uid to set.
140 IMPORT_C void SetUid( TUint32 aUid );
144 * Sets the network name
145 * @param aName The name to set.
149 IMPORT_C void SetNameL( const TDesC& aName );
153 TUint32 iUid; ///< The ID of the network group
154 HBufC* iName; ///< The name of the network group
160 #endif // CAPNETWORKITEM_H