First public contribution.
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
23 _LIT(KName,"EventDD");
26 class REventDD : public RBusLogicalChannel
28 friend class DEventDD;
31 Structure for holding driver capabilities information
32 (Just a version number in this example.)
41 inline static const TDesC& BinaryName();
42 inline static const TDesC& DriverName();
43 inline static TVersion VersionRequired();
45 inline TInt SendEvent(TRawEvent& aEvent);
54 inline const TDesC& REventDD::BinaryName()
58 inline const TDesC& REventDD::DriverName()
62 inline TVersion REventDD::VersionRequired()
64 return TVersion(1,0,0);
66 inline TInt REventDD::Open()
68 return DoCreate(DriverName(),VersionRequired(),KNullUnit,NULL,NULL,EOwnerThread);
70 inline TInt REventDD::SendEvent(TRawEvent& aEvent)
72 return DoControl(ESendEvent,static_cast<TAny*>(&aEvent));
75 #endif //__EVENTDD_H__