wvuing/imindicatorplugin/src/cimindicatorpluginimplementation.h
branchRCL_3
changeset 13 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
12:6ca72c0fe49a 13:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 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:  ImIndicator plugin implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CIMINDICATORPLUGINIMPLEMENTATION_H
       
    21 #define CIMINDICATORPLUGINIMPLEMENTATION_H
       
    22 
       
    23 // Until aknstylusactivatedpopupcontent.h is fixed
       
    24 class TAknWindowComponentLayout;
       
    25 
       
    26 //  INCLUDES
       
    27 #include <aknindicatorplugin.h>
       
    28 
       
    29 
       
    30 /**
       
    31 *  IM Indicator Plug-in implementation
       
    32 *
       
    33 *  @lib ImIndicatorPlugin
       
    34 *  @since 3.2
       
    35 */
       
    36 class CImIndicatorPluginImplementation : public CAknIndicatorPlugin
       
    37 
       
    38     {
       
    39 
       
    40     public:  // Constructors and destructor
       
    41 
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         */
       
    45         static CImIndicatorPluginImplementation* NewL();
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         ~CImIndicatorPluginImplementation();
       
    51 
       
    52     private: // From CAknIndicatorPlugin
       
    53 
       
    54         /**
       
    55          * @see CAknIndicatorPlugin
       
    56          */
       
    57         void HandleIndicatorTapL( const TInt aUid );
       
    58 
       
    59     public:// From CAknIndicatorPlugin
       
    60 
       
    61         /**
       
    62         * Returns the description used as link text, displayed with
       
    63         * the indicator icon in the indicator popup.
       
    64         *
       
    65         * @param       aUid       UID of the indicator.
       
    66         * @param[out]  aTextType  Type of the text,
       
    67         *                         @see TAknIndicatorPluginTextTypes.
       
    68         *
       
    69         * @return  Indicator description or link text.
       
    70         *          Ownership is transferred.
       
    71         */
       
    72         HBufC* TextL( const TInt aUid, TInt& aTextType );
       
    73 
       
    74     private:
       
    75 
       
    76         /**
       
    77         * C++ default constructor.
       
    78         */
       
    79         CImIndicatorPluginImplementation();
       
    80 
       
    81         /**
       
    82         * By default Symbian 2nd phase constructor is private.
       
    83         */
       
    84         void ConstructL();
       
    85 
       
    86 
       
    87     private: // new functions
       
    88 
       
    89         /**
       
    90          * Create singular or plural content message for the popup
       
    91          * @return constructed text
       
    92          *
       
    93          * NOTE! Ownership of the text is transferred to caller.
       
    94          */
       
    95         HBufC* CreatePopupContentMessageL();
       
    96 
       
    97         /**
       
    98         * Shows IM message(s)
       
    99         */
       
   100         void ShowMessageL();
       
   101 
       
   102     private: // data
       
   103 
       
   104         // Owns. Popup heading
       
   105         HBufC* iPopupHeading;
       
   106 
       
   107         // Owns. Popup content singular (template)
       
   108         HBufC* iPopupTextOne;
       
   109 
       
   110         // Owns. Popup content plural (template)
       
   111         HBufC* iPopupTextMultiple;
       
   112 
       
   113         // Owns. Actual content.
       
   114         HBufC* iContentText;
       
   115 
       
   116     };
       
   117 
       
   118 #endif      // CIMINDICATORPLUGINIMPLEMENTATION_H
       
   119 
       
   120 // End of File