services/terminalmodeservice/inc/upnpappfilterinfo.inl
branchRCL_3
changeset 9 5c72fd91570d
equal deleted inserted replaced
5:8116cc943311 9:5c72fd91570d
       
     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 __UPNPAPPFILTERINFO_INL__
       
    19 #define __UPNPAPPFILTERINFO_INL__
       
    20 
       
    21 
       
    22 // -----------------------------------------------------------------------------
       
    23 // CAppFilterInfo::AppName
       
    24 // @return Returns the application name 
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 inline const TDesC8& CUpnpAppFilterInfo::AppName()const
       
    28     {
       
    29     if ( iAppName )
       
    30         {
       
    31         return *iAppName;
       
    32         }
       
    33     return KNullDesC8();
       
    34     }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CUpnpAppFilterInfo::AppDescription
       
    38 // @return Returns the app description
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 inline const TDesC8& CUpnpAppFilterInfo::AppDescription()const
       
    42     {
       
    43     if ( iAppDesc )
       
    44         {
       
    45         return *iAppDesc;
       
    46         }
       
    47     return KNullDesC8();
       
    48     }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // CUpnpAppFilterInfo::MimeType
       
    52 // @return Returns the mimetype of the icon
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 inline const TDesC8& CUpnpAppFilterInfo::MimeType()const
       
    56     {
       
    57     if ( iMimeType )
       
    58         {
       
    59         return *iMimeType;
       
    60         }
       
    61     return KNullDesC8();
       
    62     }
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // CUpnpAppFilterInfo::Width
       
    66 // @param[out] aFlag True or false
       
    67 // @return Returns the width value of the icon
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 inline const TDesC8& CUpnpAppFilterInfo::Width()const
       
    71     {
       
    72     if ( iWidth )
       
    73         {
       
    74         return *iWidth;
       
    75         }
       
    76     return KNullDesC8();
       
    77     }
       
    78 
       
    79 // -----------------------------------------------------------------------------
       
    80 // CUpnpAppFilterInfo::Height
       
    81 // @param[out] aFlag True or false
       
    82 // @return Returns the height value of the icon
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 inline const TDesC8& CUpnpAppFilterInfo::Height()const
       
    86     {
       
    87     if ( iHeight )
       
    88         {
       
    89         return *iHeight;
       
    90         }
       
    91     return KNullDesC8();
       
    92     }
       
    93 
       
    94 // -----------------------------------------------------------------------------
       
    95 // CUpnpAppFilterInfo::Depth
       
    96 // @return Returns the depth value of the icon
       
    97 // -----------------------------------------------------------------------------
       
    98 //
       
    99 inline const TDesC8& CUpnpAppFilterInfo::Depth()const
       
   100     {
       
   101     if ( iDepth )
       
   102         {
       
   103         return *iDepth;
       
   104         }
       
   105     return KNullDesC8();
       
   106     }
       
   107 
       
   108 // -----------------------------------------------------------------------------
       
   109 // CUpnpAppFilterInfo::AllowedProfileId
       
   110 // @return Returns the depth value of the icon
       
   111 // -----------------------------------------------------------------------------
       
   112 //
       
   113 inline const TDesC8& CUpnpAppFilterInfo::AllowedProfileIdList()const
       
   114     {
       
   115     if ( iAllowedIdList )
       
   116         {
       
   117         return *iAllowedIdList;
       
   118         }
       
   119     return KNullDesC8();
       
   120     }
       
   121 
       
   122 // -----------------------------------------------------------------------------
       
   123 // CUpnpAppFilterInfo::ProtocolId
       
   124 // @return Returns the protocol name 
       
   125 // -----------------------------------------------------------------------------
       
   126 //
       
   127 inline const TDesC8& CUpnpAppFilterInfo::ProtocolId()const
       
   128     {
       
   129     if ( iProtocolId )
       
   130         {
       
   131         return *iProtocolId;
       
   132         }
       
   133     return KNullDesC8();
       
   134     }
       
   135 
       
   136 // -----------------------------------------------------------------------------
       
   137 // CUpnpAppFilterInfo::Format
       
   138 // @return Returns the format of remoting info element
       
   139 // -----------------------------------------------------------------------------
       
   140 //
       
   141 inline const TDesC8& CUpnpAppFilterInfo::Format()const
       
   142     {
       
   143     if ( iFormat )
       
   144         {
       
   145         return *iFormat;
       
   146         }
       
   147     return KNullDesC8();
       
   148     }
       
   149 
       
   150 // -----------------------------------------------------------------------------
       
   151 // CUpnpAppFilterInfo::Direction
       
   152 // @return Returns the direction of remoting info 
       
   153 // -----------------------------------------------------------------------------
       
   154 //
       
   155 inline const TDesC8& CUpnpAppFilterInfo::Direction()const
       
   156     {
       
   157     if ( iDirection)
       
   158         {
       
   159         return *iDirection;
       
   160         }
       
   161     return KNullDesC8();
       
   162     }
       
   163 
       
   164 // -----------------------------------------------------------------------------
       
   165 // CUpnpAppFilterInfo::AppCategory
       
   166 // @return Returns the category of application for appInfo element
       
   167 // -----------------------------------------------------------------------------
       
   168 //
       
   169 inline const TDesC8& CUpnpAppFilterInfo::AppCategory()const
       
   170     {
       
   171     if ( iAppCategory )
       
   172         {
       
   173         return *iAppCategory;
       
   174         }
       
   175     return KNullDesC8();
       
   176     }
       
   177 
       
   178 // -----------------------------------------------------------------------------
       
   179 // CUpnpAppFilterInfo::AppTrustLevel
       
   180 // @return Returns the trust level of application for appInfo element
       
   181 // -----------------------------------------------------------------------------
       
   182 //
       
   183 inline const TDesC8& CUpnpAppFilterInfo::AppTrustLevel()const
       
   184     {
       
   185     if ( iAppTrustLevel )
       
   186         {
       
   187         return *iAppTrustLevel;
       
   188         }
       
   189     return KNullDesC8();
       
   190     }
       
   191 
       
   192 // -----------------------------------------------------------------------------
       
   193 // CUpnpAppFilterInfo::ContentCategory
       
   194 // @return Returns the category of the content for display info element
       
   195 // -----------------------------------------------------------------------------
       
   196 //
       
   197 inline const TDesC8& CUpnpAppFilterInfo::ContentCategory()const
       
   198     {
       
   199     if ( iContCategory )
       
   200         {
       
   201         return *iContCategory;
       
   202         }
       
   203     return KNullDesC8();
       
   204     }
       
   205 
       
   206 // -----------------------------------------------------------------------------
       
   207 // CUpnpAppFilterInfo::ContentCategory
       
   208 // @return Returns the content rules for display info element
       
   209 // -----------------------------------------------------------------------------
       
   210 //
       
   211 inline const TDesC8& CUpnpAppFilterInfo::ContentRules()const
       
   212     {
       
   213     if ( iContentRules )
       
   214         {
       
   215         return *iContentRules;
       
   216         }
       
   217     return KNullDesC8();
       
   218     }
       
   219 
       
   220 // -----------------------------------------------------------------------------
       
   221 // CUpnpAppFilterInfo::ContentTrustLevel
       
   222 // @return Returns the trust level of the for display info element
       
   223 // -----------------------------------------------------------------------------
       
   224 //
       
   225 inline const TDesC8& CUpnpAppFilterInfo::ContentTrustLevel()const
       
   226     {
       
   227     if ( iContTrustLevel )
       
   228         {
       
   229         return *iContTrustLevel;
       
   230         }
       
   231     return KNullDesC8();
       
   232     }
       
   233 
       
   234 // -----------------------------------------------------------------------------
       
   235 // CUpnpAppFilterInfo::AudioType
       
   236 // @return Returns the type of audio for audio info element
       
   237 // -----------------------------------------------------------------------------
       
   238 //
       
   239 inline const TDesC8& CUpnpAppFilterInfo::AudioType()const
       
   240     {
       
   241     if ( iAudioType )
       
   242         {
       
   243         return *iAudioType;
       
   244         }
       
   245     return KNullDesC8();
       
   246     }
       
   247 // -----------------------------------------------------------------------------
       
   248 // CUpnpAppFilterInfo::ResourceStatus
       
   249 // @return Returns the protocol name 
       
   250 // -----------------------------------------------------------------------------
       
   251 //
       
   252 inline const TDesC8& CUpnpAppFilterInfo::ResourceStatus()const
       
   253     {
       
   254     if ( iRscStatus )
       
   255         {
       
   256         return *iRscStatus;
       
   257         }
       
   258     return KNullDesC8();
       
   259     }
       
   260 
       
   261 // -----------------------------------------------------------------------------
       
   262 // CUpnpAppFilterInfo::Signature
       
   263 // @return Returns the protocol name 
       
   264 // -----------------------------------------------------------------------------
       
   265 //
       
   266 inline const TDesC8& CUpnpAppFilterInfo::Signature()const
       
   267     {
       
   268     if ( iSignature )
       
   269         {
       
   270         return *iSignature;
       
   271         }
       
   272     return KNullDesC8();
       
   273     }
       
   274 
       
   275 #endif   //__UPNPAPPFILTERINFO_INL__