|
Nokia N97 SDK Example Applications Guide |
#include <CCEPostFilter.h>
Inheritance diagram for CCEPostFilter:

Definition at line 38 of file CCEPostFilter.h.
Public Member Functions |
|
| virtual | ~CCEPostFilter () |
Static Public Member Functions |
|
| static CCEPostFilter * | NewL (const TCLFDefaultFieldId aFilterCriteria, const TDesC &aFilterParameter) |
| static CCEPostFilter * | NewLC (const TCLFDefaultFieldId aFilterCriteria, const TDesC &aFilterParameter) |
Protected Member Functions |
|
| void | FilterItemsL (const TArray< MCLFItem * > &aItemList, RPointerArray< MCLFItem > &aFilteredItemList) |
Private Member Functions |
|
| CCEPostFilter (const TCLFDefaultFieldId aFilterCriteria) | |
| void | ConstructL (const TDesC &aFilterParameter) |
Private Attributes |
|
| HBufC * | iFilterParameter |
| TCLFDefaultFieldId | iFilterCriteria |
|
|
Destructor. Definition at line 82 of file CCEPostFilter.cpp. References iFilterParameter. 00083 { 00084 delete iFilterParameter; 00085 }
|
|
|
C++ default constructor.
Definition at line 36 of file CCEPostFilter.cpp. Referenced by NewLC(). 00037 : iFilterCriteria( aFilterCriteria ) 00038 { 00039 }
|
|
||||||||||||
|
Creates and returns a new instance of this class.
Definition at line 56 of file CCEPostFilter.cpp. References NewLC(). 00059 { 00060 CCEPostFilter* self = 00061 CCEPostFilter::NewLC( aFilterCriteria, aFilterParameter ); 00062 CleanupStack::Pop( self ); 00063 return self; 00064 }
|
|
||||||||||||
|
Creates and returns a new instance of this class. Pointer is left to the CleanupStack.
Definition at line 71 of file CCEPostFilter.cpp. References CCEPostFilter(). Referenced by NewL(). 00074 { 00075 CCEPostFilter* self = new (ELeave) CCEPostFilter( aFilterCriteria ); 00076 CleanupStack::PushL( self ); 00077 self->ConstructL( aFilterParameter ); 00078 return self; 00079 }
|
|
|
Symbian 2nd phase constructor. Definition at line 46 of file CCEPostFilter.cpp. References iFilterParameter. 00047 { 00048 iFilterParameter = aFilterParameter.AllocL(); 00049 }
|
|
||||||||||||
|
From MCLFPostFilter. Method for filtering the source list. Will get called when post filtering operation is executed by calling refresh for the list model.
Definition at line 92 of file CCEPostFilter.cpp. References iFilterCriteria, and iFilterParameter. 00094 { 00095 // Process all items in the item list 00096 TInt count( aItemList.Count() ); 00097 for( TInt i = 0; i < count; ++i ) 00098 { 00099 // Get value of the field defined in iFilterCriteria. 00100 // For example, if iFilterCriteria contains ECLFFieldIdAlbum, 00101 // name of the album is stored to fieldValue variable. 00102 TPtrC fieldValue; 00103 MCLFItem* currentItem = aItemList[i]; 00104 TInt error( currentItem->GetField( 00105 iFilterCriteria, fieldValue ) ); 00106 00107 // Add the music file to the filtered list, 00108 // if value of of the field is same as iFilterParameter. 00109 // For example, if it is from the desired album. 00110 if( error == KErrNone ) 00111 { 00112 if( fieldValue == iFilterParameter->Des() ) 00113 { 00114 aFilteredItemList.AppendL( currentItem ); 00115 } 00116 } 00117 } 00118 }
|
|
© Nokia 2009 |