00001 /* 00002 * ============================================================================ 00003 * Name : CPbkSingleEntryFetchDlg from CPbkSingleEntryFetchDlg.h 00004 * Part of : PbkView.dll 00005 * 00006 * Description: 00007 * Phonebook Single Entry Fetch dialog API. 00008 * Version: 00009 * 00010 * Copyright (C) 2002 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. All rights are reserved. Copying, 00014 * including reproducing, storing, adapting or translating, any 00015 * or all of this material requires the prior written consent of 00016 * Nokia Corporation. This material also contains confidential 00017 * information which may not be disclosed to others without the 00018 * prior written consent of Nokia Corporation. 00019 * ============================================================================ 00020 */ 00021 00022 #ifndef __CPbkSingleEntryFetchDlg_H__ 00023 #define __CPbkSingleEntryFetchDlg_H__ 00024 00025 // INCLUDES 00026 #include <e32base.h> // CBase 00027 #include <cntdef.h> // TContactItemId 00028 00029 // FORWARD DECLARATIONS 00030 class CContactViewBase; 00031 class CPbkFetchDlg; 00032 class CPbkContactEngine; 00033 class MObjectProvider; 00034 class MPbkFetchKeyCallback; 00035 class MPbkFetchDlgAccept; 00036 00037 00038 // CLASS DECLARATION 00045 class CPbkSingleEntryFetchDlg : 00046 public CBase 00047 { 00048 public: // Types 00052 class TParams 00053 { 00054 public: // Input parameters 00061 CPbkContactEngine* iPbkEngine; 00062 00070 CContactViewBase* iContactView; 00071 00076 MPbkFetchKeyCallback* iFetchKeyCallback; 00077 00082 MPbkFetchDlgAccept* iFetchDlgAccept; 00083 00084 public: // Output parameters 00089 TContactItemId iSelectedEntry; 00090 00091 public: // Additional input parameters 00096 TInt iCbaId; 00097 00098 public: // Constructors 00102 IMPORT_C TParams(); 00103 00104 // Compiler-generated destructor is ok for this class 00105 00106 private: // Unimplemented functions 00108 TParams(const TParams&); 00110 TParams& operator=(const TParams&); 00111 00112 private: // data 00114 TInt32 iSpare1; 00115 }; 00116 00117 public: // Interface 00124 IMPORT_C static CPbkSingleEntryFetchDlg* NewL(TParams& aParams); 00125 00129 IMPORT_C void SetMopParent(MObjectProvider* aParent); 00130 00135 IMPORT_C void ResetWhenDestroyed(CPbkSingleEntryFetchDlg** aSelfPtr); 00136 00146 IMPORT_C TInt ExecuteLD(); 00147 00151 ~CPbkSingleEntryFetchDlg(); 00152 00153 private: // Implementation 00154 CPbkSingleEntryFetchDlg(TParams& aParams); 00155 void ConstructL(); 00156 static void Panic(TInt aReason); 00157 00158 private: // Data 00160 TParams& iParams; 00162 CPbkFetchDlg* iFetchDlg; 00164 CPbkContactEngine* iPbkEngine; 00166 CPbkContactEngine* iOwnPbkEngine; 00168 CContactViewBase* iContactView; 00170 TBool* iDestroyedPtr; 00172 CPbkSingleEntryFetchDlg** iSelfPtr; 00174 MObjectProvider* iObjectProvider; 00175 }; 00176 00177 // __CPbkSingleEntryFetchDlg_H__ 00178 #endif 00179 00180 // End of File