idlehomescreen/sapiwrapper/cpswrapper/inc/publishermap.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2  * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Presents publisher info map
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef PUBLISHERMAP_H
       
    19 #define PUBLISHERMAP_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 
       
    24 namespace cpswrapper
       
    25     {
       
    26     // Forward declarations
       
    27     class CPublisherInfo;
       
    28 
       
    29     /**
       
    30      *  Presents publisher info map
       
    31      *
       
    32      *
       
    33      *  @code
       
    34      *
       
    35      *  @endcode
       
    36      *
       
    37      *  @lib cpswrapper.lib
       
    38      *  @since S60 v5.0
       
    39      */
       
    40     NONSHARABLE_CLASS( CPublisherMap ) : public CBase
       
    41         {
       
    42     public:
       
    43         /**
       
    44          * Two-phased constructor.
       
    45          */
       
    46         IMPORT_C static CPublisherMap* NewL();
       
    47         IMPORT_C static CPublisherMap* NewLC();
       
    48 
       
    49         /**
       
    50          * Destructor.
       
    51          */
       
    52         IMPORT_C ~CPublisherMap();
       
    53 
       
    54     protected:
       
    55         // constructors
       
    56         CPublisherMap();
       
    57 
       
    58         void ConstructL();
       
    59 
       
    60     public:
       
    61         // new functions
       
    62 
       
    63         /**
       
    64          * Adds publisher info
       
    65          *
       
    66          * @param aPublisherInfo publisher info
       
    67          */
       
    68         IMPORT_C void AddPublisherInfoL(CPublisherInfo* aPublisherInfo);
       
    69 
       
    70         /**
       
    71          * Gets publisher infos
       
    72          *
       
    73          * @return Array of publisher infos
       
    74          */
       
    75         IMPORT_C RPointerArray<CPublisherInfo>& PublisherInfo() const;
       
    76 
       
    77     private:
       
    78         // data
       
    79         // Publisher info array, owned
       
    80         mutable RPointerArray<CPublisherInfo> iPublisherInfo;
       
    81         };
       
    82     }
       
    83 
       
    84 #endif // PUBLISHERMAP_H
       
    85 // End of file