equal
deleted
inserted
replaced
|
1 // Copyright (c) 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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Graphics Resource - logical device driver implementation |
|
15 // |
|
16 |
|
17 #include "sgdeviceimpl.h" |
|
18 |
|
19 _LIT(KSgDevicePanicCategory, "SGDEV"); |
|
20 |
|
21 void Panic(TSgDevicePanicReason aReason) |
|
22 { |
|
23 Kern::PanicCurrentThread(KSgDevicePanicCategory, aReason); |
|
24 } |
|
25 |
|
26 DECLARE_STANDARD_LDD() |
|
27 { |
|
28 return new DSgDevice; |
|
29 } |
|
30 |
|
31 TInt DSgDevice::Install() |
|
32 { |
|
33 return SetName(&KSgDeviceName); |
|
34 } |
|
35 |
|
36 void DSgDevice::GetCaps(TDes8& aDes) const |
|
37 { |
|
38 aDes.Zero(); |
|
39 } |
|
40 |
|
41 TInt DSgDevice::Create(DLogicalChannelBase*& aChannel) |
|
42 { |
|
43 aChannel = new DSgChannel; |
|
44 return aChannel ? KErrNone : KErrNoMemory; |
|
45 } |