00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #if (!defined __CONTACTVIEWS_H__)
00017 #define __CONTACTVIEWS_H__
00018
00019 #include <cntdb.h>
00020 #include <cntview.h>
00021 #include <cntviewbase.h>
00022
00023
00024
00025 class CExampleViews : public CActive , public MContactViewObserver
00026 {
00027 public:
00028 static CExampleViews* NewL(CContactDatabase& aDb);
00029 ~CExampleViews();
00030 void Start();
00031
00032 private:
00033 CExampleViews(CContactDatabase& aDb);
00034 void ConstructL();
00035
00036
00037 void RunL();
00038 void DoCancel();
00039
00040
00041 virtual void HandleContactViewEvent(const CContactViewBase& aView, const TContactViewEvent& aEvent);
00042
00043 CContactFindView* CreateFindViewL();
00044 void HandleViewEventL(const CContactViewBase& aView);
00045
00046 private:
00047
00048 CContactDatabase& iDb;
00049
00050 RContactViewSortOrder iSortOrder;
00051
00052 CContactLocalView* iLocalView;
00053
00054 CContactFindView* iFindView;
00055
00056 CContactFilteredView* iFilterView;
00057
00058 TInt iNumViewsCreated;
00059 };
00060
00061
00062 #endif // __CONTACTVIEWS_H__