phonebookui/Phonebook2/inc/CPbk2PresenceIconInfo.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Phonebook 2 presence icon information.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2PRESENCEICONINFO_H
       
    20 #define CPBK2PRESENCEICONINFO_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 class CFbsBitmap;
       
    27 
       
    28 // Presence icon info for specific xSP service
       
    29 class CPbk2PresenceIconInfo : public CBase
       
    30     {
       
    31     public: // constructors and destructors
       
    32         IMPORT_C static CPbk2PresenceIconInfo* NewL( 
       
    33             const TDesC8& aBrandId,
       
    34             const TDesC8& aElementId,
       
    35             const TDesC16& aServiceName );
       
    36         ~CPbk2PresenceIconInfo();
       
    37             
       
    38     private: // constructors and destructors
       
    39         CPbk2PresenceIconInfo();
       
    40         void ConstructL(
       
    41             const TDesC8& aBrandId,
       
    42             const TDesC8& aElementId,
       
    43             const TDesC16& aServiceName );
       
    44             
       
    45     public: // interface
       
    46                 
       
    47         /**
       
    48          * Sets icon bitmap and mask.
       
    49          *
       
    50          * @param aBitmap icon bitmap, ownership is transferred
       
    51          * @param aBitmapMask icon bitmap mask, ownership is transferred
       
    52          */
       
    53         IMPORT_C void SetBitmap( CFbsBitmap* aBitmap, CFbsBitmap* aBitmapMask );
       
    54                 
       
    55         /**
       
    56          * @return branding id to identify icon branding package
       
    57          */
       
    58         IMPORT_C const TDesC8& BrandId();
       
    59                 
       
    60         /**
       
    61          * @return element id in branding package
       
    62          */
       
    63         IMPORT_C  const TDesC8& ElementId();
       
    64                 
       
    65         /**
       
    66          * @return element id in branding package
       
    67          */
       
    68         IMPORT_C const TDesC16& ServiceName();
       
    69 
       
    70         /**
       
    71          * @return icon bitmap
       
    72          */
       
    73         IMPORT_C const CFbsBitmap* IconBitmap();
       
    74 
       
    75         /**
       
    76          * @return icon bitmap mask
       
    77          */
       
    78         IMPORT_C const CFbsBitmap* IconBitmapMask();
       
    79                         
       
    80     private: // data
       
    81         
       
    82         /// Owned: branding id to identify icon branding package
       
    83         HBufC8* iBrandId;
       
    84         /// Owned: element id in branding package
       
    85         HBufC8* iElementId;
       
    86         /// Owned: service name
       
    87         HBufC16* iServiceName;
       
    88         /// Owned: icon
       
    89         CFbsBitmap* iBitmap;
       
    90         /// Owned: icon mask
       
    91         CFbsBitmap* iBitmapMask;
       
    92     };
       
    93 
       
    94 #endif // CPBK2PRESENCEICONINFO_H
       
    95 
       
    96 // End of File