author | mikaruus <mika.a.ruuskanen@nokia.com> |
Wed, 17 Feb 2010 13:58:55 +0200 | |
changeset 7 | fa67e03b87df |
parent 0 | 63b37f68c1ce |
permissions | -rw-r--r-- |
0 | 1 |
/* |
2 |
* Copyright (c) 2009 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 the License "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: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
#ifndef __ISICHANNELROUTERIF_H__ |
|
21 |
#define __ISICHANNELROUTERIF_H__ |
|
22 |
||
23 |
#include <e32def.h> // For TInt, TAny |
|
7
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
24 |
#include "misiobjectrouterif.h" |
0 | 25 |
|
26 |
class MISIRouterChannelIf; |
|
27 |
||
28 |
/* |
|
29 |
* Abstract interface for channel to use router services. |
|
30 |
*/ |
|
7
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
31 |
class MISIChannelRouterIf : public MISIObjectRouterIf |
0 | 32 |
{ |
33 |
||
34 |
public: |
|
35 |
||
36 |
/* |
|
37 |
* Informs router that channel is closed. |
|
38 |
*/ |
|
39 |
virtual void Disconnect( const TUint8 aObjId ) = 0; |
|
40 |
||
41 |
/* |
|
42 |
* Returns the interface. |
|
43 |
* @return pointer to the interface |
|
44 |
*/ |
|
45 |
static MISIChannelRouterIf* GetIf(); |
|
46 |
||
47 |
/* |
|
48 |
* Informs router that channel is ready to be open. |
|
49 |
* If transceiver is not found sets the open pending. |
|
50 |
* Router shall complete the pending opens when transceiver is ready. |
|
51 |
* @param aUID, clients UID. |
|
52 |
* @param aObjId, reference to write clients object id. |
|
53 |
* @param aCallback, pointer to channel interface. |
|
54 |
*/ |
|
55 |
virtual void Connect( const TInt32 aUID, TUint8& aObjId, MISIRouterChannelIf* aCallback ) = 0; |
|
56 |
||
57 |
/* |
|
58 |
* Sends a message to router. |
|
59 |
* Responsibility to deallocate the message is transferred router. |
|
60 |
* @param aMessage, messages reference |
|
61 |
* @return, KErrNone if succesfull, KErrNotReady if transceiver is not present. |
|
62 |
*/ |
|
63 |
virtual TInt Send( TDes8& aMessage, const TUint8 aObjId ) = 0; |
|
64 |
||
65 |
}; |
|
66 |
||
67 |
#endif /* __ISICHANNELROUTERIF_H__ */ |