|
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 * This file contains the inline functions defined in DosServer.h |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // |
|
21 // --------------------------------------------------------- |
|
22 // CDosServer::ContainerIx |
|
23 // --------------------------------------------------------- |
|
24 // |
|
25 inline CObjectConIx* CDosServer::ContainerIx() const |
|
26 { |
|
27 return iContainerIx; |
|
28 } |
|
29 |
|
30 // |
|
31 // --------------------------------------------------------- |
|
32 // CDosServer::EventManager |
|
33 // --------------------------------------------------------- |
|
34 // |
|
35 inline CDosEventManager* CDosServer::EventManager() const |
|
36 { |
|
37 return iEventManager; |
|
38 } |
|
39 |
|
40 // |
|
41 // --------------------------------------------------------- |
|
42 // CDosServer::DosFactory |
|
43 // --------------------------------------------------------- |
|
44 // |
|
45 inline CDosFactoryBase* CDosServer::DosFactory() const |
|
46 { |
|
47 return iDosFactory; |
|
48 } |
|
49 |
|
50 |
|
51 // |
|
52 // CDosServer::TSignal class |
|
53 // |
|
54 |
|
55 // |
|
56 // --------------------------------------------------------- |
|
57 // CDosEvent::TSignal Constructor |
|
58 // --------------------------------------------------------- |
|
59 // |
|
60 |
|
61 inline CDosServer::TSignal::TSignal() |
|
62 { |
|
63 } |
|
64 |
|
65 // |
|
66 // --------------------------------------------------------- |
|
67 // CDosEvent::TSignal Constructor |
|
68 // --------------------------------------------------------- |
|
69 // |
|
70 inline CDosServer::TSignal::TSignal(TRequestStatus& aStatus) |
|
71 : iStatus(&aStatus), iId(RThread().Id()) |
|
72 { |
|
73 aStatus=KRequestPending; |
|
74 } |
|
75 |
|
76 // |
|
77 // --------------------------------------------------------- |
|
78 // CDosEvent::TSignal::Get |
|
79 // --------------------------------------------------------- |
|
80 // |
|
81 inline TPtrC CDosServer::TSignal::Get() const |
|
82 { |
|
83 return TPtrC((const TText*)this,sizeof(*this)/sizeof(TText)); |
|
84 } |
|
85 |
|
86 // |
|
87 // --------------------------------------------------------- |
|
88 // CDosEvent::TSignal::Set |
|
89 // --------------------------------------------------------- |
|
90 // |
|
91 inline TInt CDosServer::TSignal::Set(const TDesC& aData) |
|
92 { |
|
93 return aData.Size()!=sizeof(*this) ? |
|
94 KErrGeneral : |
|
95 (Mem::Copy(this,aData.Ptr(),sizeof(*this)),KErrNone); |
|
96 } |