wvuing/IMPSConnectionUI/Inc/MIMPSConnUiConnectionSettingsObserver.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:  Connection settings observer.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MIMPSCONNUICONNECTIONSETTINGSOBSERVER_H
       
    19 #define __MIMPSCONNUICONNECTIONSETTINGSOBSERVER_H
       
    20 
       
    21 #include <E32Std.h>
       
    22 #include <impspresenceconnectionuiconstsng.h>
       
    23 
       
    24 
       
    25 //FORWARD DECLARATION
       
    26 class CIMPSConnUiConnectionSettingsNotifier;
       
    27 
       
    28 
       
    29 /**
       
    30  * Observer interface to get notifcations from
       
    31  * connection mode events.
       
    32  *
       
    33  * @since 2.1
       
    34  */
       
    35 NONSHARABLE_CLASS( MIMPSConnUiConnectionSettingsObserver )
       
    36     {
       
    37 public: //notify methods
       
    38 
       
    39     /**
       
    40      * Notifies from connection settings event.
       
    41      *
       
    42      * If event handling causes a leave, leave is
       
    43      * reported back to HandleConnectionSettingsEventNotifyError()
       
    44      * callback.
       
    45      *
       
    46      * @since 2.1
       
    47      * @param aNotifier The connection settings notifier
       
    48      * where this event is coming from.
       
    49      * @param aEvent The connection settings event.
       
    50      */
       
    51     virtual void HandleConnectionSettingsEventL(
       
    52         CIMPSConnUiConnectionSettingsNotifier* aNotifier,
       
    53         TIMPSConnectionSettingsEvent aEvent ) = 0;
       
    54 
       
    55 
       
    56     /**
       
    57      * Called when connection mode event listening or event
       
    58      * handling fails.
       
    59      *
       
    60      * Here is reported both errors from handling the
       
    61      * actual connection settings event and also asynchronously
       
    62      * the errors coming from starting (requesting) the
       
    63      * connection settings notify.
       
    64      *
       
    65      * When reporting the error, the notifier is
       
    66      * automaticly stopped. However, the observer may
       
    67      * restart the notifier during the notify callback
       
    68      * if desired so.
       
    69      *
       
    70      * @since 2.1
       
    71      * @param aNotifier The connection settings notifier
       
    72      * where this error is coming from.
       
    73      * @param aError is the error code.
       
    74      */
       
    75     virtual void HandleConnectionSettingsEventNotifyError(
       
    76         CIMPSConnUiConnectionSettingsNotifier* aNotifier,
       
    77         TInt aError ) = 0;
       
    78     };
       
    79 
       
    80 
       
    81 #endif //__MIMPSCONNUICONNECTIONSETTINGSOBSERVER_H