wvuing/IMPSConnectionUI/ConnectionSrc/CIMPSConnectionUiAgentImp.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2005 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:  IMPS Connection UI Agent implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CIMPSCONNECTIONUIAGENTIMP_H__
       
    19 #define __CIMPSCONNECTIONUIAGENTIMP_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <E32Base.h>
       
    23 #include <mimpsconnuipresenceeventobserverng.h>
       
    24 #include "cimpsconnectionuingagent.h"
       
    25 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CIMPSConnUiClntFilteredPresEventNotifier;
       
    29 class MCnUiUiFacade;
       
    30 class CCnUiClientGroupUiNotifyHandler;
       
    31 class CCnUiClientGroupUiConnectionLostHandler;
       
    32 class MCnUiConnModeHandler;
       
    33 
       
    34 
       
    35 
       
    36 // CLASS DECLARATION
       
    37 /**
       
    38  * CIMPSConnectionUiAgentImp.
       
    39  * Implements the CIMPSConnectionUiAgent features.
       
    40  *
       
    41  * @since 2.1
       
    42  */
       
    43 NONSHARABLE_CLASS( CIMPSConnectionUiAgentImp ) : public CBase,
       
    44         public MIMPSConnUiPresenceEventObserver
       
    45     {
       
    46 public:  // Two-phased constructors and destructor
       
    47 
       
    48     /**
       
    49      * Two-phased constructor.
       
    50      */
       
    51     static CIMPSConnectionUiAgentImp* NewL( TIMPSConnectionClient aClient );
       
    52 
       
    53 
       
    54     /**
       
    55      * Destructor.
       
    56      */
       
    57     ~CIMPSConnectionUiAgentImp();
       
    58 
       
    59 private:
       
    60 
       
    61     /**
       
    62      * C++ constructor.
       
    63      */
       
    64     CIMPSConnectionUiAgentImp( TIMPSConnectionClient aClient );
       
    65 
       
    66 
       
    67     /**
       
    68      * Symbian OS constructor.
       
    69      */
       
    70     void ConstructL();
       
    71 
       
    72 
       
    73 public:  // New service handling methods
       
    74 
       
    75 
       
    76     /**
       
    77      * From CIMPSConnectionUiAgentImp
       
    78      * @see CIMPSConnectionUiAgentImp
       
    79      * @since 2.1
       
    80      */
       
    81     TInt StartServiceL( TIMPSConnectionUiAgentService aService );
       
    82 
       
    83 
       
    84     /**
       
    85      * From CIMPSConnectionUiAgentImp
       
    86      * @see CIMPSConnectionUiAgentImp
       
    87      * @since 2.1
       
    88      */
       
    89     TInt StopService( TIMPSConnectionUiAgentService aService );
       
    90 
       
    91 
       
    92     /**
       
    93      * From CIMPSConnectionUiAgentImp
       
    94      * @see CIMPSConnectionUiAgentImp
       
    95      * @since 2.1
       
    96      */
       
    97     void StopAllServices();
       
    98 
       
    99     /**
       
   100      * Sets the new resource file to use in Connection UI.
       
   101      *
       
   102      * @param aNewResourceFile the new resourcefile to be used
       
   103      * @since 2.6
       
   104      */
       
   105     void UseResourceFileL( const TDesC& aNewResourceFile );
       
   106 
       
   107 
       
   108 public:  //From MIMPSConnUiPresenceEventObserver
       
   109 
       
   110     /**
       
   111      * From MIMPSConnUiPresenceEventObserver
       
   112      * Notifies from presence event.
       
   113      *
       
   114      * @since 2.1
       
   115      * @param aNotifier The presence notifier where this
       
   116      * event is coming from.
       
   117      * @param aEvent The presence event.
       
   118      */
       
   119     void HandlePresenceEventL( CIMPSConnUiPresEventNotifier* aNotifier,
       
   120                                const CPEngNWSessionSlotID2& aSessionSlotID,
       
   121                                TIMPSConnectionClient aClient,
       
   122                                TIMPSPresenceServiceEvent aEvent );
       
   123 
       
   124 
       
   125     /**
       
   126      * From MIMPSConnUiPresenceEventObserver
       
   127      * Called when presence event listening or event
       
   128      * handling fails.
       
   129      *
       
   130      * @since 2.1
       
   131      * @param aNotifier The presence notifier where this
       
   132      * error is coming from.
       
   133      * @param aError is the error code.
       
   134      */
       
   135     void HandlePresenceEventNotifyError( CIMPSConnUiPresEventNotifier* aNotifier,
       
   136                                          TInt aError );
       
   137 
       
   138 
       
   139 private: //Data
       
   140 
       
   141     ///<Client for which behalf this agent is working. Owned.
       
   142     const TIMPSConnectionClient                     iClient;
       
   143 
       
   144     ///<Client filtered event notifier. Owned
       
   145     CIMPSConnUiClntFilteredPresEventNotifier*       iClntNotifier;
       
   146 
       
   147     ///<Connection UI facade. Owned
       
   148     MCnUiUiFacade*                                  iUi;
       
   149 
       
   150 
       
   151     ///<
       
   152     CCnUiClientGroupUiNotifyHandler*                iClientGroupRemoteNotifyHandler;
       
   153 
       
   154     ///<
       
   155     CCnUiClientGroupUiConnectionLostHandler*        iClientGroupConnectionLostHandler;
       
   156 
       
   157     ///<
       
   158     MCnUiConnModeHandler*                           iClientConnModeHandler;
       
   159 
       
   160     ///<Resource file name, owned
       
   161     HBufC*											iBrandedResourceFileName;
       
   162     };
       
   163 
       
   164 #endif      //__CIMPSCONNECTIONUIAGENTIMP_H
       
   165 //  End of File
       
   166 
       
   167