sdkcreationmw/sdkruntimes/loggingapi/inc/EcmtServerObserver.h
author Shabe Razvi <shaber@symbian.org>
Thu, 04 Nov 2010 17:22:05 +0000
changeset 4 b3b823debf08
parent 0 b26acd06ea60
permissions -rw-r--r--
Workaround for Bug 3917 - CWinsockInterface::DataSent calls NotifyDataSent which is not implemented.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     1
/*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     2
* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies).
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     3
* All rights reserved.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     4
* This component and the accompanying materials are made available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     6
* which accompanies this distribution, and is available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     8
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     9
* Initial Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    11
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    12
* Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    13
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    14
* Description:  Ecmt server observer interface
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    15
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    16
*/
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    17
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    18
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    19
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    20
#ifndef MECMTSERVEROBSERVER_H
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    21
#define MECMTSERVEROBSERVER_H
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    22
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    23
//  INCLUDES
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    24
#include <e32std.h>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    25
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    26
// CONSTANTS
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    27
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    28
// Notification messages 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    29
_LIT( KEcmtServerListening, "Listening" );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    30
_LIT( KEcmtServerConnected, "Connected" );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    31
_LIT( KEcmtServerDisconnected, "Disconnected" );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    32
_LIT( KEcmtServerError, "Error" );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    33
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    34
// CLASS DECLARATION
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    35
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    36
/**
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    37
 * Ecmt server observer interface.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    38
 * A client application that wishes to receive Ecmt server notification
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    39
 * messages such as connection / disconnection indications must implement
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    40
 * this interface and then register itself to Ecmt server using
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    41
 * REcmt::SetServerObserverL. There is at least one such client in the
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    42
 * system - the EcmtGui application. Other clients shoudn't be
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    43
 * concerned with the state of Ecmt server.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    44
 *
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    45
 * @ingroup EcmtClient
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    46
 */
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    47
class MEcmtServerObserver
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    48
{
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    49
public:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    50
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    51
    /**
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    52
     * Callback method invoked when a notification message arrive from Ecmt
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    53
     * server.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    54
     *
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    55
     * @param aMsg Notification message from Ecmt server.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    56
     * @param aError Completion code of message reception from server.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    57
     * Either KErrNone if notification message was received succesfully
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    58
     * or one of the system wide error codes.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    59
     */
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    60
    virtual void HandleEcmtServerNotification(const TDesC& aMsg, TInt aErr) =0;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    61
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    62
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    63
#endif      
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    64
           
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    65
// End of File