services/terminalmodeservice/inc/upnpappfilterinfo.h
branchRCL_3
changeset 30 594d15129e2c
parent 29 5c72fd91570d
equal deleted inserted replaced
29:5c72fd91570d 30:594d15129e2c
     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: CUpnpAppFilterInfo class declaration
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __UPNPAPPFILTERINFO_H__
       
    19 #define __UPNPAPPFILTERINFO_H__
       
    20 
       
    21 // Include Files
       
    22 #include <e32base.h>
       
    23 #include "terminalmodeconsts.h"
       
    24 
       
    25 // Literals
       
    26 _LIT8(KProtocolId,          "protocolID");
       
    27 _LIT8(KFormat,              "format");
       
    28 _LIT8(KRemotingDirection,   "direction");
       
    29 _LIT8(KAppCategory,         "appCategory");
       
    30 _LIT8(KTrustLevel,          "trustLevel");
       
    31 _LIT8(KContCategory,        "contentCategory");
       
    32 _LIT8(KContentRules,        "contentRules");
       
    33 _LIT8(KAudioType,           "audioType");
       
    34 
       
    35 /**
       
    36  *  This class stores the parsed information provided in the AppListingFilter
       
    37  *  input argument of the GetApplicationList action.
       
    38  *  Provides internal setter and getter methods.
       
    39  *  Maintains a structure which holds the information such as which all optional 
       
    40  *  elements are needed in the response and which all applications should go
       
    41  *  in the response.
       
    42  */
       
    43 class CUpnpAppFilterInfo : public CBase
       
    44       {
       
    45 public: 
       
    46       static  CUpnpAppFilterInfo* NewL();
       
    47       ~CUpnpAppFilterInfo();
       
    48       
       
    49       /*
       
    50        * Method is used to set the value for each key provided in the filter string as an input
       
    51        * Returns error if the there is a mismatch of the key or key is not as per the GetApplicationList schema
       
    52        * The default parameter( aDisplayInfoFlag ) is provided only to distinguish the child element "trustLevel" ( child element)
       
    53        * of displayInfo element from "trustLevel" of appInfo element.
       
    54        */
       
    55       void SetFilterInfoL( const TDesC8& aKey, const TDesC8& aValue,
       
    56                                   TTerminalModeErrorCode& aErr, TBool aDisplayInfoFlag = EFalse );
       
    57       // inlined Getter methods
       
    58       inline const TDesC8& AppName()const;
       
    59       inline const TDesC8& AppDescription()const;
       
    60       inline const TDesC8& MimeType()const;
       
    61       inline const TDesC8& Width()const;
       
    62       inline const TDesC8& Height()const;
       
    63       inline const TDesC8& Depth()const;
       
    64       inline const TDesC8& AllowedProfileIdList()const;
       
    65       inline const TDesC8& ProtocolId()const;
       
    66       inline const TDesC8& Format()const;
       
    67       inline const TDesC8& Direction()const;
       
    68       inline const TDesC8& AppCategory()const;
       
    69       inline const TDesC8& AppTrustLevel()const;
       
    70       inline const TDesC8& ContentCategory()const;
       
    71       inline const TDesC8& ContentRules()const;
       
    72       inline const TDesC8& ContentTrustLevel()const;
       
    73       inline const TDesC8& AudioType()const;
       
    74       inline const TDesC8& ResourceStatus()const;
       
    75       inline const TDesC8& Signature()const;
       
    76       
       
    77 private:
       
    78       CUpnpAppFilterInfo( );
       
    79       
       
    80 private:
       
    81       HBufC8*                     iAppName;
       
    82       HBufC8*                     iAppDesc;
       
    83       HBufC8*                     iMimeType;
       
    84       HBufC8*                     iWidth;
       
    85       HBufC8*                     iHeight;
       
    86       HBufC8*                     iDepth;
       
    87       HBufC8*                     iAllowedIdList;
       
    88       HBufC8*                     iProtocolId;
       
    89       HBufC8*                     iFormat;
       
    90       HBufC8*                     iDirection;
       
    91       HBufC8*                     iAppCategory;
       
    92       HBufC8*                     iAppTrustLevel;
       
    93       HBufC8*                     iContCategory;
       
    94       HBufC8*                     iContentRules;
       
    95       HBufC8*                     iContTrustLevel;
       
    96       HBufC8*                     iAudioType;
       
    97       HBufC8*                     iRscStatus;
       
    98       HBufC8*                     iSignature;
       
    99       };
       
   100 
       
   101 #include "upnpappfilterinfo.inl"
       
   102 
       
   103 #endif  //__UPNPAPPFILTERINFO_H__