|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Implementation for the RDosEventSnd class. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include "doseventsender.h" |
|
21 #include "dosclientserver.h" |
|
22 |
|
23 // |
|
24 // --------------------------------------------------------- |
|
25 // RDosEventSnc::Register |
|
26 // --------------------------------------------------------- |
|
27 // |
|
28 TInt RDosEventSnd::Register(RDosServer& aServer) |
|
29 { |
|
30 return CreateSubSession(aServer,EDosCreateEventSndSubSession, TIpcArgs(TIpcArgs::ENothing, TIpcArgs::ENothing, KAutoComplete)); |
|
31 } |
|
32 |
|
33 //Implementation of the events |
|
34 |
|
35 /**************************************** |
|
36 MESSAGE SCTRUCTURE FOR EVENTS |
|
37 |
|
38 0 -> Event name |
|
39 1 -> Pointer to the data |
|
40 2 -> Length of the data |
|
41 3 -> Reserved for Client/Server Comms |
|
42 ****************************************/ |
|
43 |
|
44 // |
|
45 // --------------------------------------------------------- |
|
46 // RDosEventSnd::SendEvent |
|
47 // --------------------------------------------------------- |
|
48 // |
|
49 TInt RDosEventSnd::SendEvent(TIpcArgs &aParams) |
|
50 { |
|
51 return SendReceive(EDosEventFiring, aParams); |
|
52 } |