1 /** |
|
2 * Copyright (c) 2010 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: CUpnpTerminalModeIcon INL file |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __UPNTERMINALMODEICON_INL__ |
|
19 #define __UPNTERMINALMODEICON_INL__ |
|
20 |
|
21 // --------------------------------------------------------------------------------- |
|
22 // CUpnpTerminalModeIcon::IconFilename |
|
23 // Returns the icon filename along with the complete filepath. |
|
24 // --------------------------------------------------------------------------------- |
|
25 // |
|
26 inline const TDesC& CUpnpTerminalModeIcon::IconFilename()const |
|
27 { |
|
28 if ( iFilename ) |
|
29 { |
|
30 return *iFilename; |
|
31 } |
|
32 return KNullDesC(); |
|
33 } |
|
34 |
|
35 // --------------------------------------------------------------------------------- |
|
36 // CUpnpTerminalModeIcon::Width |
|
37 // Returns the width of the icon. |
|
38 // --------------------------------------------------------------------------------- |
|
39 // |
|
40 inline TInt CUpnpTerminalModeIcon::Width()const |
|
41 { |
|
42 return iIconWidth; |
|
43 } |
|
44 |
|
45 // --------------------------------------------------------------------------------- |
|
46 // CUpnpTerminalModeIcon::Height |
|
47 // Returns the height of the icon. |
|
48 // --------------------------------------------------------------------------------- |
|
49 // |
|
50 inline TInt CUpnpTerminalModeIcon::Height()const |
|
51 { |
|
52 return iIconHeight; |
|
53 } |
|
54 |
|
55 // --------------------------------------------------------------------------------- |
|
56 // CUpnpTerminalModeIcon::Depth |
|
57 // Returns the depth of the icon. |
|
58 // ------------------------------------------------------------------------------------- |
|
59 // |
|
60 inline TInt CUpnpTerminalModeIcon::Depth()const |
|
61 { |
|
62 return iIconDepth; |
|
63 } |
|
64 |
|
65 // --------------------------------------------------------------------------------- |
|
66 // CUpnpTerminalModeIcon::MimeType |
|
67 // Returns the mime type of the icon. |
|
68 // --------------------------------------------------------------------------------- |
|
69 // |
|
70 inline const TDesC8& CUpnpTerminalModeIcon::MimeType()const |
|
71 { |
|
72 if ( iIconMimeType ) |
|
73 { |
|
74 return *iIconMimeType; |
|
75 } |
|
76 return KNullDesC8(); |
|
77 } |
|
78 |
|
79 |
|
80 #endif //__UPNTERMINALMODEICON_INL__ |
|