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: CUpnpTmFilteredAppList class declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __UPNPTMFILTEREDAPPLIST_H__ |
|
19 #define __UPNPTMFILTEREDAPPLIST_H__ |
|
20 |
|
21 |
|
22 //System Includes |
|
23 #include <inetprottextutils.h> |
|
24 |
|
25 //User Includes |
|
26 #include "upnpterminalmodeicon.h" |
|
27 #include "upnpremotableappstore.h" |
|
28 #include "upnpappfilterinfo.h" |
|
29 |
|
30 //Forward Declaration |
|
31 class CUpnpTmServerImpl; |
|
32 |
|
33 |
|
34 /** |
|
35 * Constructs the filtered GetApplicationList action Response. |
|
36 * Applies the AppListingFilter criteria while creating the soap |
|
37 * response buffer. |
|
38 * |
|
39 */ |
|
40 class CUpnpTmFilteredAppList : public CBase |
|
41 { |
|
42 public: |
|
43 static CUpnpTmFilteredAppList* NewL( CUpnpTmServerImpl& aTmServerImpl ); |
|
44 |
|
45 ~CUpnpTmFilteredAppList(); |
|
46 void ParseAppFilterStringL( const TDesC8& aAppFilter, TTerminalModeErrorCode& aErr ); |
|
47 void ConstructFilteredGetAppListResponseL( TInt aAppIndex ); |
|
48 const TDesC8& SignatureElement()const; |
|
49 |
|
50 private: |
|
51 CUpnpTmFilteredAppList( CUpnpTmServerImpl& aTmServerImpl ); |
|
52 void ConstructL( ); |
|
53 |
|
54 TBool TerminalModeInfoMatchingL( const CUpnpTmInfoElement& aTmInfoElement )const; |
|
55 TBool TmInfoElementMatchingL( const CUpnpTmInfoElement& aTmInfoElement,TInt aIndex )const; |
|
56 void IconMatchingL( TInt aAppIndex ); |
|
57 void ConstructFilteredResponseL( TInt aAppIndex ); |
|
58 TBool IconLookUp( CUpnpTerminalModeIcon& aIcon ); |
|
59 const TDesC8& RemoveWhiteSpace( TPtrC8& aData ); |
|
60 |
|
61 private: |
|
62 CUpnpAppFilterInfo* iFilterInfo; |
|
63 CUpnpTmServerImpl& iTmServerImpl; |
|
64 }; |
|
65 |
|
66 #endif // __UPNPTMFILTEREDAPPLIST_H__ |
|