textinput/peninputarc/inc/peninputlayoutcontrolinc/peninputfloatbubble.h
branchRCL_3
changeset 7 a47de9135b21
equal deleted inserted replaced
3:f5a1e66df979 7:a47de9135b21
       
     1 /*
       
     2 * Copyright (c) 2006-2006 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:  header file of Floating bubble
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_PENINPUTFLOATINGBUBBLE_H
       
    20 #define C_PENINPUTFLOATINGBUBBLE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 #include <AknLayout2Def.h>
       
    26 
       
    27 #include "peninputfloatctrl.h"
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  *  CPeninputFloatingBubble
       
    33  * 
       
    34  */
       
    35 NONSHARABLE_CLASS(CPeninputFloatingBubble) : public CPeninputFloatingCtrl
       
    36     {
       
    37 public: // Constructors
       
    38     /**
       
    39      * Symbian constructor.
       
    40      *
       
    41      * @since S60 v5.0
       
    42      * @return Pointer to created object
       
    43      */
       
    44     static CPeninputFloatingBubble* NewL();
       
    45     /**
       
    46      * Symbian constructor.
       
    47      *
       
    48      * @since S60 v5.0
       
    49      * @return Pointer to created object
       
    50      */
       
    51     static CPeninputFloatingBubble* NewLC();
       
    52     
       
    53     /**
       
    54      * standard c++ destructor.
       
    55      *
       
    56      * @since S60 v5.0
       
    57      * @return None
       
    58      */
       
    59     ~CPeninputFloatingBubble();
       
    60     
       
    61 public: //from base class CCoeControl
       
    62     /**
       
    63      * From CCoeControl
       
    64      * Draw this control
       
    65      * 
       
    66      * @since S60 v5.0
       
    67      * @param aRect the rectangle of this view that needs updating
       
    68      * @return None
       
    69      */ 
       
    70     virtual void Draw( const TRect& aRect ) const;
       
    71     
       
    72 public:
       
    73     /**
       
    74      * Set background image
       
    75      * 
       
    76      * @since S60 v5.0
       
    77      * @param aBkgndImage skin item id of background image
       
    78      * @return None
       
    79      */
       
    80     void SetBackgroundImage( TAknsItemID aBkgndImage );
       
    81  
       
    82     /**
       
    83      * Set text 
       
    84      * 
       
    85      * @since S60 v5.0
       
    86      * @param aText new text to be shown in this control
       
    87      * @return None
       
    88      */    
       
    89     void SetText( const TDesC& aText );
       
    90     
       
    91     /**
       
    92      * 
       
    93      * @since S60 v5.0
       
    94      * @param aTextFormat text layout
       
    95      * @return None
       
    96      */    
       
    97     void SetTextFormat( TAknTextLineLayout aTextFormat );
       
    98     
       
    99     /**
       
   100      * 
       
   101      * @since S60 v5.0
       
   102      * @param aIconImage icon to be shown in this control
       
   103      * @param aIconMask mask of icon 
       
   104      * @return None
       
   105      */    
       
   106     void SetIcon( CFbsBitmap* aIconImage, CFbsBitmap* aIconMask );
       
   107     
       
   108 private:
       
   109     /**
       
   110      * C++ default constructor.
       
   111      * 
       
   112      * @since S60 v5.0
       
   113      * @return None
       
   114      */  
       
   115     CPeninputFloatingBubble();
       
   116     
       
   117     /**
       
   118      * Symbian constructor
       
   119      * 
       
   120      * @since S60 v5.0
       
   121      * @return None
       
   122      */    
       
   123     void ConstructL();
       
   124     
       
   125 private:
       
   126     /**
       
   127      * the text to be shown
       
   128      * Own
       
   129      */
       
   130     HBufC* iText;
       
   131     
       
   132     /**
       
   133      * text format
       
   134      */
       
   135     TAknTextLineLayout iTextFormat;
       
   136     
       
   137     /**
       
   138      * the icon to be shown
       
   139      * not own
       
   140      */
       
   141     CFbsBitmap* iIconImage;
       
   142     
       
   143     /**
       
   144      * mask of icon
       
   145      * not own
       
   146      */
       
   147     CFbsBitmap* iIconMask;
       
   148     
       
   149     /**
       
   150      * skin item id of background
       
   151      */
       
   152     TAknsItemID iBkgndSkinId;
       
   153     };
       
   154 
       
   155 #endif // C_PENINPUTFLOATINGBUBBLE_H