services/terminalmodeservice_plat/inc/upnptmserverdeviceinfo.inl
author hgs
Fri, 03 Sep 2010 09:13:04 +0300
changeset 31 b51a6f4f15ba
parent 24 e9457ebcc4df
permissions -rw-r--r--
201035
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24
hgs
parents:
diff changeset
     1
/**
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description: 
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#ifndef __UPNPTMSERVERDEVICEINFO_INL__
hgs
parents:
diff changeset
    19
#define __UPNPTMSERVERDEVICEINFO_INL__
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
// ---------------------------------------------------------------------------------
hgs
parents:
diff changeset
    22
// CUpnpTmServerDeviceInfo::SetStartConn
hgs
parents:
diff changeset
    23
// Method to set the boolean value which indicates whether the server device 
hgs
parents:
diff changeset
    24
// is able to initiate bluetooth connection to client or not.
hgs
parents:
diff changeset
    25
// @param aStartConn Boolean value ( True or false )
hgs
parents:
diff changeset
    26
// ---------------------------------------------------------------------------------
hgs
parents:
diff changeset
    27
//
hgs
parents:
diff changeset
    28
inline void CUpnpTmServerDeviceInfo::SetStartConn( TBool aStartConn )
hgs
parents:
diff changeset
    29
    {
hgs
parents:
diff changeset
    30
    iStartConnValue = aStartConn;
hgs
parents:
diff changeset
    31
    }
hgs
parents:
diff changeset
    32
hgs
parents:
diff changeset
    33
// ---------------------------------------------------------------------------------
hgs
parents:
diff changeset
    34
// CUpnpTmServerDeviceInfo::IapId
hgs
parents:
diff changeset
    35
// Method is used to retrieve IAP ID.
hgs
parents:
diff changeset
    36
// ---------------------------------------------------------------------------------
hgs
parents:
diff changeset
    37
//
hgs
parents:
diff changeset
    38
inline TUint32 CUpnpTmServerDeviceInfo::IapId()const
hgs
parents:
diff changeset
    39
    {
hgs
parents:
diff changeset
    40
    return iIapId;
hgs
parents:
diff changeset
    41
    }
hgs
parents:
diff changeset
    42
hgs
parents:
diff changeset
    43
// ---------------------------------------------------------------------------------
hgs
parents:
diff changeset
    44
// CUpnpTmServerDeviceInfo::DeviceIconList
hgs
parents:
diff changeset
    45
// Method is used to retrieve an array of device icons.
hgs
parents:
diff changeset
    46
// ---------------------------------------------------------------------------------
hgs
parents:
diff changeset
    47
//
hgs
parents:
diff changeset
    48
inline const RPointerArray<CUpnpTerminalModeIcon>& CUpnpTmServerDeviceInfo::DeviceIconList()const
hgs
parents:
diff changeset
    49
    {
hgs
parents:
diff changeset
    50
    return iDeviceIconList;
hgs
parents:
diff changeset
    51
    }
hgs
parents:
diff changeset
    52
hgs
parents:
diff changeset
    53
// ---------------------------------------------------------------------------------
hgs
parents:
diff changeset
    54
// CUpnpTmServerDeviceInfo::DeviceInfo
hgs
parents:
diff changeset
    55
// Method is used to retrieve additional information related to the device.
hgs
parents:
diff changeset
    56
// ---------------------------------------------------------------------------------
hgs
parents:
diff changeset
    57
//
hgs
parents:
diff changeset
    58
inline const TDesC8& CUpnpTmServerDeviceInfo::DeviceInfo()const
hgs
parents:
diff changeset
    59
    {
hgs
parents:
diff changeset
    60
    if ( iDeviceInfo )
hgs
parents:
diff changeset
    61
        {
hgs
parents:
diff changeset
    62
        return *iDeviceInfo;
hgs
parents:
diff changeset
    63
        }
hgs
parents:
diff changeset
    64
    return KNullDesC8();
hgs
parents:
diff changeset
    65
    }
hgs
parents:
diff changeset
    66
hgs
parents:
diff changeset
    67
// ---------------------------------------------------------------------------------
hgs
parents:
diff changeset
    68
// CUpnpTmServerDeviceInfo::BtAddress
hgs
parents:
diff changeset
    69
// Method is used to retrieve the BT MAC address of the TM server device.
hgs
parents:
diff changeset
    70
// ---------------------------------------------------------------------------------
hgs
parents:
diff changeset
    71
//
hgs
parents:
diff changeset
    72
inline const TDesC8& CUpnpTmServerDeviceInfo::BtAddress()const
hgs
parents:
diff changeset
    73
    {
hgs
parents:
diff changeset
    74
    if ( iBtAddr )
hgs
parents:
diff changeset
    75
        {
hgs
parents:
diff changeset
    76
        return *iBtAddr;
hgs
parents:
diff changeset
    77
        }
hgs
parents:
diff changeset
    78
    return KNullDesC8();
hgs
parents:
diff changeset
    79
    }
hgs
parents:
diff changeset
    80
hgs
parents:
diff changeset
    81
// ---------------------------------------------------------------------------------
hgs
parents:
diff changeset
    82
// CUpnpTmServerDeviceInfo::StartConn
hgs
parents:
diff changeset
    83
// Method is used to fetch the the boolean value for BT start connection preferences.
hgs
parents:
diff changeset
    84
// ---------------------------------------------------------------------------------
hgs
parents:
diff changeset
    85
//
hgs
parents:
diff changeset
    86
inline TBool CUpnpTmServerDeviceInfo::StartConn()const
hgs
parents:
diff changeset
    87
    {
hgs
parents:
diff changeset
    88
    return iStartConnValue;
hgs
parents:
diff changeset
    89
    }
hgs
parents:
diff changeset
    90
hgs
parents:
diff changeset
    91
#endif  //__UPNPTMSERVERDEVICEINFO_INL__