wvuing/IMPSConnectionUI/UISrc/CCnUiClientGroupUiConnectionLostHandler.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Client group connection lost notify handler.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CCNUICLIENTGROUPUICONNECTIONLOSTHANDLER_H
       
    21 #define __CCNUICLIENTGROUPUICONNECTIONLOSTHANDLER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <E32Base.h>
       
    25 #include <impspresenceconnectionuiconstsng.h>
       
    26 
       
    27 
       
    28 
       
    29 //FORWARD DECLARATION
       
    30 class MCnUiUiFacade;
       
    31 
       
    32 
       
    33 
       
    34 // CLASS DECLARATION
       
    35 /**
       
    36  * Client group connection lost notify handler.
       
    37  *
       
    38  * Shows proper UI notifications for
       
    39  * active connection lost events.
       
    40  *
       
    41  * @since 2.1
       
    42  */
       
    43 NONSHARABLE_CLASS( CCnUiClientGroupUiConnectionLostHandler ) : public CBase
       
    44     {
       
    45 public:  // Two-phased constructors and destructor
       
    46 
       
    47     /**
       
    48      * Two-phased constructor, constructs the
       
    49      * CCnUiClientGroupUiConnectionLostHandler object.
       
    50      *
       
    51      * @since 2.1
       
    52      * @param aClient The client.
       
    53      * @param aUi The UI to use.
       
    54      * @param aInitialEvent initial event
       
    55      * @return is pointer to CCnUiClientGroupUiConnectionLostHandler object.
       
    56      */
       
    57     static CCnUiClientGroupUiConnectionLostHandler* NewL(
       
    58         TIMPSConnectionClient aClient );
       
    59 
       
    60     /**
       
    61      * Destructor.
       
    62      */
       
    63     virtual ~CCnUiClientGroupUiConnectionLostHandler();
       
    64 
       
    65 
       
    66 private: //Constructors
       
    67 
       
    68     /**
       
    69      * C++ default constructor.
       
    70      */
       
    71     CCnUiClientGroupUiConnectionLostHandler( TIMPSConnectionClient aClient );
       
    72 
       
    73 public: //New methods
       
    74 
       
    75     /**
       
    76      * Notifies from presence event.
       
    77      *
       
    78      * @since 2.1
       
    79      * @param aEvent The presence event.
       
    80      */
       
    81     void HandlePresenceEventL( TIMPSPresenceServiceEvent aEvent );
       
    82 
       
    83 
       
    84     /**
       
    85      * Sets the new resource file to use in Connection UI.
       
    86      *
       
    87      * @param aNewResourceFile the new resourcefile to be used
       
    88      * @since 2.6
       
    89      */
       
    90     void UseResourceFileL( const TDesC& aNewResourceFile );
       
    91 
       
    92 private: //data
       
    93 
       
    94     ///<Client for which behalf working. Owned.
       
    95     const TIMPSConnectionClient             iClient;
       
    96 
       
    97     ///<The UI to use. Owned.
       
    98     MCnUiUiFacade*                          iUi;
       
    99 
       
   100     ///<Resource file name, owned
       
   101     HBufC*									iBrandedResourceFileName;
       
   102     };
       
   103 
       
   104 #endif      //__CCNUICLIENTGROUPUICONNECTIONLOSTHANDLER_H
       
   105 
       
   106 //  End of File
       
   107