equal
deleted
inserted
replaced
22 #include <sqldb.h> |
22 #include <sqldb.h> |
23 #include "cpglobals.h" |
23 #include "cpglobals.h" |
24 |
24 |
25 class RDesReadStream; |
25 class RDesReadStream; |
26 class CCPSecurityPolicy; |
26 class CCPSecurityPolicy; |
|
27 class TLiwGenericParam; |
27 |
28 |
28 // CLASS DECLARATION |
29 // CLASS DECLARATION |
29 /** |
30 /** |
30 * Base Map class for Publisher Registry and Content |
31 * Base Map class for Publisher Registry and Content |
31 * |
32 * |
72 * Two-phased constructor. |
73 * Two-phased constructor. |
73 */ |
74 */ |
74 IMPORT_C static CCPLiwMap* NewL( const CLiwGenericParamList& aList ); |
75 IMPORT_C static CCPLiwMap* NewL( const CLiwGenericParamList& aList ); |
75 |
76 |
76 /** |
77 /** |
|
78 * Two-phased constructor. |
|
79 */ |
|
80 IMPORT_C static CCPLiwMap* NewL( const CLiwMap& aMap ); |
|
81 |
|
82 /** |
77 * Used by client to serialize this object |
83 * Used by client to serialize this object |
78 * |
84 * |
79 * @return object serialized to binary |
85 * @return object serialized to binary |
80 */ |
86 */ |
81 IMPORT_C HBufC8* PackForServerLC() const; |
87 IMPORT_C HBufC8* PackForServerLC() const; |
131 * @return ETrue is property found or EFalse if not |
137 * @return ETrue is property found or EFalse if not |
132 */ |
138 */ |
133 IMPORT_C TBool GetProperty( const TDesC8& aProperty, |
139 IMPORT_C TBool GetProperty( const TDesC8& aProperty, |
134 TInt32& aResult ) const; |
140 TInt32& aResult ) const; |
135 |
141 |
136 |
142 |
|
143 /** |
|
144 * Return list of action triggers from main map |
|
145 * Note that these are not triggers from action map |
|
146 * |
|
147 * @return list of action triggers, NULL if main map |
|
148 * doesn't have action trigger |
|
149 */ |
|
150 IMPORT_C CLiwDefaultList* GetActionTriggersLC( ) const; |
|
151 |
137 /** |
152 /** |
138 * Setter for security policy |
153 * Setter for security policy |
139 * |
154 * |
140 * @param aPolicy security policy |
155 * @param aPolicy security policy |
141 */ |
156 */ |
377 * @param aItemMap map with parameters |
392 * @param aItemMap map with parameters |
378 */ |
393 */ |
379 void SetL( const CLiwGenericParamList& aInParamList ); |
394 void SetL( const CLiwGenericParamList& aInParamList ); |
380 |
395 |
381 /** |
396 /** |
|
397 * Sets all parameters according to provided list |
|
398 * @param aMap map with parameters |
|
399 */ |
|
400 void SetL( const CLiwMap& aMap ); |
|
401 |
|
402 /** |
|
403 * Extracts a param and appends it to the internal list |
|
404 * @param aParam a param to extract |
|
405 */ |
|
406 void ExtractParamL(const TLiwGenericParam& aParam); |
|
407 |
|
408 /** |
382 * Check Get properties |
409 * Check Get properties |
383 * |
410 * |
384 * @return logical sum of TCPProperties of the object |
411 * @return logical sum of TCPProperties of the object |
385 */ |
412 */ |
386 TUint GetFilterL() const; |
413 TUint GetFilterL() const; |
436 /** |
463 /** |
437 * Checks if property(key) is present in internal map |
464 * Checks if property(key) is present in internal map |
438 * |
465 * |
439 */ |
466 */ |
440 TBool PropertyExists( const TDesC8& aProperty ) const; |
467 TBool PropertyExists( const TDesC8& aProperty ) const; |
441 |
|
442 |
468 |
443 /** |
469 /** |
444 * Fetches entries from database |
470 * Fetches entries from database |
445 * |
471 * |
446 * @param aSqlDb handle to database |
472 * @param aSqlDb handle to database |
605 |
631 |
606 /** |
632 /** |
607 * Perform the second phase construction of a CCPLiwMap object. |
633 * Perform the second phase construction of a CCPLiwMap object. |
608 */ |
634 */ |
609 void ConstructL(); |
635 void ConstructL(); |
|
636 |
|
637 /** |
|
638 * Checks a type a map |
|
639 * @param aVariant variant containing a map type |
|
640 * @return ETrue if a type is Publisher and EFalse if Content |
|
641 * in other cases method leaves |
|
642 */ |
|
643 static TBool IsTypePublisherL(const TLiwVariant& aVariant); |
610 |
644 |
611 protected: |
645 protected: |
612 // data |
646 // data |
613 |
647 |
614 /* |
648 /* |