0
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-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: Ecmt server observer interface
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef MECMTSERVEROBSERVER_H
|
|
21 |
#define MECMTSERVEROBSERVER_H
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include <e32std.h>
|
|
25 |
|
|
26 |
// CONSTANTS
|
|
27 |
|
|
28 |
// Notification messages
|
|
29 |
_LIT( KEcmtServerListening, "Listening" );
|
|
30 |
_LIT( KEcmtServerConnected, "Connected" );
|
|
31 |
_LIT( KEcmtServerDisconnected, "Disconnected" );
|
|
32 |
_LIT( KEcmtServerError, "Error" );
|
|
33 |
|
|
34 |
// CLASS DECLARATION
|
|
35 |
|
|
36 |
/**
|
|
37 |
* Ecmt server observer interface.
|
|
38 |
* A client application that wishes to receive Ecmt server notification
|
|
39 |
* messages such as connection / disconnection indications must implement
|
|
40 |
* this interface and then register itself to Ecmt server using
|
|
41 |
* REcmt::SetServerObserverL. There is at least one such client in the
|
|
42 |
* system - the EcmtGui application. Other clients shoudn't be
|
|
43 |
* concerned with the state of Ecmt server.
|
|
44 |
*
|
|
45 |
* @ingroup EcmtClient
|
|
46 |
*/
|
|
47 |
class MEcmtServerObserver
|
|
48 |
{
|
|
49 |
public:
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Callback method invoked when a notification message arrive from Ecmt
|
|
53 |
* server.
|
|
54 |
*
|
|
55 |
* @param aMsg Notification message from Ecmt server.
|
|
56 |
* @param aError Completion code of message reception from server.
|
|
57 |
* Either KErrNone if notification message was received succesfully
|
|
58 |
* or one of the system wide error codes.
|
|
59 |
*/
|
|
60 |
virtual void HandleEcmtServerNotification(const TDesC& aMsg, TInt aErr) =0;
|
|
61 |
};
|
|
62 |
|
|
63 |
#endif
|
|
64 |
|
|
65 |
// End of File
|