favouriteswapap.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name        : FavouritesWapAp.h 
00004 *  Part of     : Favourites Engine
00005 *  Interface   : Favourites Engine API
00006 *  Description : Declaration of FavouritesWapAp
00007 *  Version     : %Version%
00008 *
00009 *  Copyright (C) 2004 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation. All rights are reserved. Copying, 
00013 *  including reproducing, storing,  adapting or translating, any 
00014 *  or all of this material requires the prior written consent of 
00015 *  Nokia Corporation. This material also contains confidential 
00016 *  information which may not be disclosed to others without the 
00017 *  prior written consent of Nokia Corporation.
00018 *
00019 * ============================================================================
00020 */
00021 
00022 #ifndef FAVOURITES_WAP_AP_H
00023 #define FAVOURITES_WAP_AP_H
00024 
00025 //  INCLUDES
00026 #include <e32base.h>
00027 #include <s32strm.h>
00028 
00029 // CLASS DECLARATION
00030 
00035 class TFavouritesWapAp
00036     {
00037 
00038     public:     // construction
00039         
00044         IMPORT_C TFavouritesWapAp();
00045 
00046     public:     // operators
00047 
00054         IMPORT_C TFavouritesWapAp& operator= ( const TFavouritesWapAp& aAp );
00055 
00063         IMPORT_C TFavouritesWapAp& operator= ( TUint32 aApId );
00064 
00065     public:     // setters
00066 
00072         IMPORT_C void SetNull();
00073 
00079         IMPORT_C void SetDefault();
00080 
00087         IMPORT_C void SetApId( TUint32 aApId );
00088 
00089     public:     // getters
00090 
00096         IMPORT_C TBool IsNull() const;
00097 
00103         IMPORT_C TBool IsDefault() const;
00104 
00111         IMPORT_C TUint32 ApId() const;
00112 
00113     public:     // (But not exported): Streaming
00114 
00121         void ExternalizeL( RWriteStream& aStream ) const;
00122 
00128         void InternalizeL( RReadStream& aStream );
00129 
00130     private:    // friends
00131 
00133         friend class RFavouritesSrvTable;
00134 
00135     private:    // types
00136 
00140         enum TValueKind
00141             {
00142             ENormal,    
00143             ENull,      
00144             EDefault    
00145             };
00146 
00147     private:    // data
00148 
00152         TUint32 iApId;
00153 
00157         TValueKind iValueKind;
00158     };
00159 
00160 #endif
00161             
00162 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top