epoc32/include/mw/apnetworks.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
     1.1 --- a/epoc32/include/mw/apnetworks.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/mw/apnetworks.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,139 @@
     1.4 -apnetworks.h
     1.5 +/*
     1.6 +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* 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
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:  Declaration of the CApNetworks class.
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +#ifndef CAPNETWORKS_H
    1.24 +#define CAPNETWORKS_H
    1.25 +
    1.26 +// Deprecation warning
    1.27 +#warning This header file has been deprecated. Will be removed in one of the next SDK releases.
    1.28 + 
    1.29 + 
    1.30 +//  INCLUDES
    1.31 +#include <commdb.h>
    1.32 +#include <ApEngineVer.h>
    1.33 +#include <ApEngineConsts.h>
    1.34 +
    1.35 +// FORWARD DECLARATIONS
    1.36 +class CApNetworkItem;
    1.37 +class CApNetworkItemList;
    1.38 +
    1.39 +// CLASS DECLARATION
    1.40 +
    1.41 +/**
    1.42 +*  This class is used to help client's network selection.
    1.43 +*
    1.44 +*/
    1.45 +NONSHARABLE_CLASS( CApNetworks ) :public CBase
    1.46 +    {
    1.47 +    public:  // Constructors and destructor
    1.48 +
    1.49 +        /**
    1.50 +        * Two-phased constructor. Leaves on failure, places instance
    1.51 +        * on cleanup stack.
    1.52 +        * @param aDb a reference to a CCommsDataBase.
    1.53 +        * @return The constructed CApNetworks.
    1.54 +        *
    1.55 +        * @deprecated
    1.56 +        */
    1.57 +        IMPORT_C static CApNetworks* NewLC( CCommsDatabase& aDb );
    1.58 +
    1.59 +
    1.60 +        /**
    1.61 +        * Destructor.
    1.62 +        *
    1.63 +        * @deprecated
    1.64 +        */
    1.65 +        IMPORT_C virtual ~CApNetworks();
    1.66 +
    1.67 +
    1.68 +    private:      // Constructors
    1.69 +
    1.70 +        /**
    1.71 +        * C++ default constructor.
    1.72 +        *
    1.73 +        * @deprecated
    1.74 +        */
    1.75 +        IMPORT_C CApNetworks();
    1.76 +
    1.77 +        /**
    1.78 +        * Second-phase constructor.
    1.79 +        * @param aDb The database
    1.80 +        *
    1.81 +        * @deprecated
    1.82 +        */
    1.83 +        IMPORT_C void ConstructL( CCommsDatabase& aDb );
    1.84 +
    1.85 +
    1.86 +
    1.87 +    public: // New functions
    1.88 +
    1.89 +        /**
    1.90 +        * Counts the items in the list
    1.91 +        * @return The number of items in the list.
    1.92 +        *
    1.93 +        * @deprecated
    1.94 +        */
    1.95 +        IMPORT_C TUint32 Count() const;
    1.96 +
    1.97 +
    1.98 +        /**
    1.99 +        * Gets the name of the network group with the given UID
   1.100 +        * Ownership of the returned text is not passed.
   1.101 +        * @param aUid The uid of the network item 
   1.102 +        * @return The name of the network group
   1.103 +        *
   1.104 +        * @deprecated
   1.105 +        */
   1.106 +        IMPORT_C const TDesC& NameL( TUint32 aUid ) const;
   1.107 +
   1.108 +
   1.109 +
   1.110 +        /**
   1.111 +        * Provides all data in a CApNetworkItemList array.
   1.112 +        * @param aList A reference to a CApNetworkItemList object
   1.113 +        * to hold the values.
   1.114 +        * @return The number of items in the list.
   1.115 +        * All elements in the aList array and their memory
   1.116 +        * will be freed inside the routine.
   1.117 +        * The routine expands or shrinks the array as necessary
   1.118 +        * to minimize memory consumption.
   1.119 +        *
   1.120 +        * @deprecated
   1.121 +        */
   1.122 +        IMPORT_C TInt AllListItemDataL( CApNetworkItemList& aList );
   1.123 +
   1.124 +
   1.125 +    private:
   1.126 +        /**
   1.127 +        * This function updates the member data according to the
   1.128 +        * current filter settings.
   1.129 +        * @return Error code.
   1.130 +        */
   1.131 +        TInt DoUpdateL();
   1.132 +
   1.133 +
   1.134 +
   1.135 +    private:    // Data
   1.136 +        CCommsDatabase*             iDb;    // Does not own it!
   1.137 +        CApNetworkItemList*         iApList;
   1.138 +        TInt                        iCount;
   1.139 +    };
   1.140 +
   1.141 +#endif      // CAPNETWORKS_H
   1.142 +
   1.143 +// End of File