24
|
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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef __UPNPTMSERVERDEVICEINFO_INL__
|
|
19 |
#define __UPNPTMSERVERDEVICEINFO_INL__
|
|
20 |
|
|
21 |
// ---------------------------------------------------------------------------------
|
|
22 |
// CUpnpTmServerDeviceInfo::SetStartConn
|
|
23 |
// Method to set the boolean value which indicates whether the server device
|
|
24 |
// is able to initiate bluetooth connection to client or not.
|
|
25 |
// @param aStartConn Boolean value ( True or false )
|
|
26 |
// ---------------------------------------------------------------------------------
|
|
27 |
//
|
|
28 |
inline void CUpnpTmServerDeviceInfo::SetStartConn( TBool aStartConn )
|
|
29 |
{
|
|
30 |
iStartConnValue = aStartConn;
|
|
31 |
}
|
|
32 |
|
|
33 |
// ---------------------------------------------------------------------------------
|
|
34 |
// CUpnpTmServerDeviceInfo::IapId
|
|
35 |
// Method is used to retrieve IAP ID.
|
|
36 |
// ---------------------------------------------------------------------------------
|
|
37 |
//
|
|
38 |
inline TUint32 CUpnpTmServerDeviceInfo::IapId()const
|
|
39 |
{
|
|
40 |
return iIapId;
|
|
41 |
}
|
|
42 |
|
|
43 |
// ---------------------------------------------------------------------------------
|
|
44 |
// CUpnpTmServerDeviceInfo::DeviceIconList
|
|
45 |
// Method is used to retrieve an array of device icons.
|
|
46 |
// ---------------------------------------------------------------------------------
|
|
47 |
//
|
|
48 |
inline const RPointerArray<CUpnpTerminalModeIcon>& CUpnpTmServerDeviceInfo::DeviceIconList()const
|
|
49 |
{
|
|
50 |
return iDeviceIconList;
|
|
51 |
}
|
|
52 |
|
|
53 |
// ---------------------------------------------------------------------------------
|
|
54 |
// CUpnpTmServerDeviceInfo::DeviceInfo
|
|
55 |
// Method is used to retrieve additional information related to the device.
|
|
56 |
// ---------------------------------------------------------------------------------
|
|
57 |
//
|
|
58 |
inline const TDesC8& CUpnpTmServerDeviceInfo::DeviceInfo()const
|
|
59 |
{
|
|
60 |
if ( iDeviceInfo )
|
|
61 |
{
|
|
62 |
return *iDeviceInfo;
|
|
63 |
}
|
|
64 |
return KNullDesC8();
|
|
65 |
}
|
|
66 |
|
|
67 |
// ---------------------------------------------------------------------------------
|
|
68 |
// CUpnpTmServerDeviceInfo::BtAddress
|
|
69 |
// Method is used to retrieve the BT MAC address of the TM server device.
|
|
70 |
// ---------------------------------------------------------------------------------
|
|
71 |
//
|
|
72 |
inline const TDesC8& CUpnpTmServerDeviceInfo::BtAddress()const
|
|
73 |
{
|
|
74 |
if ( iBtAddr )
|
|
75 |
{
|
|
76 |
return *iBtAddr;
|
|
77 |
}
|
|
78 |
return KNullDesC8();
|
|
79 |
}
|
|
80 |
|
|
81 |
// ---------------------------------------------------------------------------------
|
|
82 |
// CUpnpTmServerDeviceInfo::StartConn
|
|
83 |
// Method is used to fetch the the boolean value for BT start connection preferences.
|
|
84 |
// ---------------------------------------------------------------------------------
|
|
85 |
//
|
|
86 |
inline TBool CUpnpTmServerDeviceInfo::StartConn()const
|
|
87 |
{
|
|
88 |
return iStartConnValue;
|
|
89 |
}
|
|
90 |
|
|
91 |
#endif //__UPNPTMSERVERDEVICEINFO_INL__
|