00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef AKNCOMMONDIALOGSDYNMEM_H
00022 #define AKNCOMMONDIALOGSDYNMEM_H
00023
00024
00025 #include <CAknCommonDialogsBase.h>
00026
00027 class MAknMemorySelectionObserver;
00028 class MAknFileSelectionObserver;
00029 class MAknFileFilter;
00030
00031
00055 NONSHARABLE_CLASS( AknCommonDialogsDynMem )
00056 {
00057
00058 public:
00059
00090 enum TMemoryTypes
00091 {
00099 EMemoryTypePhone = 0x00000001,
00100
00112 EMemoryTypeMMC = 0x00000002,
00113
00120 EMemoryTypeRemote = 0x00000004,
00121
00128 EMemoryTypeInternalMassStorage = 0x00000008,
00129
00135 EMemoryTypeMMCExternal = 0x00000010
00136
00137 };
00138
00139 public:
00140
00155 IMPORT_C static TBool RunSelectDlgLD(
00156 TInt aIncludedMedias,
00157 TDes& aFileName,
00158 TInt aMemorySelectionResourceId,
00159 MAknFileSelectionObserver* aObserver = NULL );
00160
00175 IMPORT_C static TBool RunSelectDlgLD(
00176 TInt aIncludedMedias,
00177 TDes& aFileName,
00178 TInt aMemorySelectionResourceId,
00179 MAknFileFilter* aFilter,
00180 MAknFileSelectionObserver* aObserver = NULL );
00181
00195 IMPORT_C static TBool RunSelectDlgLD(
00196 TInt aIncludedMedias,
00197 TDes& aFileName,
00198 TInt aMemorySelectionResourceId,
00199 const TDesC& aFileSelectionTitle,
00200 MAknFileSelectionObserver* aObserver = NULL );
00201
00216 IMPORT_C static TBool RunSelectDlgLD(
00217 TInt aIncludedMedias,
00218 TDes& aFileName,
00219 TInt aMemorySelectionResourceId,
00220 TInt aFileSelectionResourceId,
00221 MAknFileSelectionObserver* aObserver = NULL );
00222
00235 IMPORT_C static TBool RunMoveDlgLD(
00236 TInt aIncludedMedias,
00237 TDes& aDirectory,
00238 TInt aMemorySelectionResourceId,
00239 MAknFileSelectionObserver* aObserver = NULL );
00240
00255 IMPORT_C static TBool RunMoveDlgLD(
00256 TInt aIncludedMedias,
00257 TDes& aDirectory,
00258 TInt aMemorySelectionResourceId,
00259 MAknFileFilter* aFilter,
00260 MAknFileSelectionObserver* aObserver = NULL );
00261
00276 IMPORT_C static TBool RunMoveDlgLD(
00277 TInt aIncludedMedias,
00278 TDes& aDirectory,
00279 TInt aMemorySelectionResourceId,
00280 const TDesC& aFileSelectionTitle,
00281 MAknFileSelectionObserver* aObserver = NULL );
00282
00297 IMPORT_C static TBool RunMoveDlgLD(
00298 TInt aIncludedMedias,
00299 TDes& aDirectory,
00300 TInt aMemorySelectionResourceId,
00301 TInt aFileSelectionResourceId,
00302 MAknFileSelectionObserver* aObserver = NULL );
00303
00321 IMPORT_C static TBool RunSaveDlgLD(
00322 TInt aIncludedMedias,
00323 TDes& aDefaultFileName,
00324 TInt aMemorySelectionResourceId,
00325 MAknFileSelectionObserver* aObserver = NULL );
00326
00343 IMPORT_C static TBool RunSaveDlgLD(
00344 TInt aIncludedMedias,
00345 TDes& aDefaultFileName,
00346 TInt aMemorySelectionResourceId,
00347 MAknFileFilter* aFilter,
00348 MAknFileSelectionObserver* aObserver = NULL );
00349
00366 IMPORT_C static TBool RunSaveDlgLD(
00367 TInt aIncludedMedias,
00368 TDes& aDefaultFileName,
00369 TInt aMemorySelectionResourceId,
00370 const TDesC& aFileSelectionTitle,
00371 const TDesC& aFileNamePromptTitle,
00372 MAknFileSelectionObserver* aObserver = NULL );
00373
00390 IMPORT_C static TBool RunSaveDlgLD(
00391 TInt aIncludedMedias,
00392 TDes& aDefaultFileName,
00393 TInt aMemorySelectionResourceId,
00394 TInt aFileSelectionResourceId,
00395 MAknFileSelectionObserver* aObserver = NULL );
00396
00414 IMPORT_C static TBool RunSaveDlgLD(
00415 TInt aIncludedMedias,
00416 TDes& aDefaultFileName,
00417 TInt aMemorySelectionResourceId,
00418 TInt aFileSelectionResourceId,
00419 const TDesC& aFileNamePromptTitle,
00420 MAknFileSelectionObserver* aObserver = NULL );
00421
00438 IMPORT_C static TBool RunSaveDlgNoDirectorySelectionLD(
00439 TInt aIncludedMedias,
00440 TDes& aDefaultFileName,
00441 TInt aMemorySelectionResourceId,
00442 MAknFileSelectionObserver* aObserver = NULL );
00443
00461 IMPORT_C static TBool RunSaveDlgNoDirectorySelectionLD(
00462 TInt aIncludedMedias,
00463 TDes& aDefaultFileName,
00464 TInt aMemorySelectionResourceId,
00465 const TDesC& aFileNamePromptTitle,
00466 MAknFileSelectionObserver* aObserver = NULL );
00467
00480 IMPORT_C static TBool RunCopyDlgLD(
00481 TInt aIncludedMedias,
00482 TDes& aDirectory,
00483 TInt aMemorySelectionResourceId,
00484 MAknFileSelectionObserver* aObserver = NULL );
00485
00486
00501 IMPORT_C static TBool RunCopyDlgLD(
00502 TInt aIncludedMedias,
00503 TDes& aDirectory,
00504 TInt aMemorySelectionResourceId,
00505 MAknFileFilter* aFilter,
00506 MAknFileSelectionObserver* aObserver = NULL );
00507
00522 IMPORT_C static TBool RunCopyDlgLD(
00523 TInt aIncludedMedias,
00524 TDes& aDirectory,
00525 TInt aMemorySelectionResourceId,
00526 TInt aFileSelectionResourceId,
00527 MAknFileSelectionObserver* aObserver = NULL );
00528
00544 IMPORT_C static TBool RunSelectDlgLD(
00545 TInt aIncludedMedias,
00546 TDes& aFileName,
00547 const TDesC& aStartFolder,
00548 TInt aMemorySelectionResourceId,
00549 MAknFileSelectionObserver* aObserver = NULL );
00550
00568 IMPORT_C static TBool RunSelectDlgLD(
00569 TInt aIncludedMedias,
00570 TDes& aFileName,
00571 const TDesC& aStartFolder,
00572 TInt aMemorySelectionResourceId,
00573 MAknFileFilter* aFilter,
00574 MAknFileSelectionObserver* aObserver = NULL );
00575
00592 IMPORT_C static TBool RunSelectDlgLD(
00593 TInt aIncludedMedias,
00594 TDes& aFileName,
00595 const TDesC& aStartFolder,
00596 TInt aMemorySelectionResourceId,
00597 const TDesC& aFileSelectionTitle,
00598 MAknFileSelectionObserver* aObserver = NULL );
00599
00617 IMPORT_C static TBool RunSelectDlgLD(
00618 TInt aIncludedMedias,
00619 TDes& aFileName,
00620 const TDesC& aStartFolder,
00621 TInt aMemorySelectionResourceId,
00622 TInt aFileSelectionResourceId,
00623 MAknFileSelectionObserver* aObserver = NULL );
00624
00642 IMPORT_C static TBool RunSelectDlgLD(
00643 TInt aIncludedMedias,
00644 TDes& aFileName,
00645 const TDesC& aStartFolder,
00646 TInt aMemorySelectionResourceId,
00647 TInt aFileSelectionResourceId,
00648 const TDesC& aFileSelectionTitle,
00649 MAknFileFilter* aFilter = NULL,
00650 MAknFileSelectionObserver* aObserver = NULL );
00651
00672 IMPORT_C static TBool RunSaveDlgLD(
00673 TInt aIncludedMedias,
00674 TDes& aDefaultFileName,
00675 const TDesC& aStartFolder,
00676 TInt aMemorySelectionResourceId,
00677 TInt aFileSelectionResourceId,
00678 const TDesC& aFileSelectionTitle,
00679 MAknFileFilter* aFilter = NULL,
00680 MAknFileSelectionObserver* aObserver = NULL );
00681
00700 IMPORT_C static TBool RunFolderSelectDlgLD(
00701 TInt aIncludedMedias,
00702 TDes& aFolder,
00703 const TDesC& aStartFolder,
00704 TInt aMemorySelectionResourceId,
00705 TInt aFileSelectionResourceId,
00706 const TDesC& aFileSelectionTitle,
00707 MAknFileFilter* aFilter = NULL,
00708 MAknFileSelectionObserver* aObserver = NULL );
00709
00710 private:
00711
00742 static TBool RunL(
00743 TCommonDialogType aType,
00744 TDes& aFileName,
00745 TInt aMemorySelectionResourceId,
00746 TBool aNoFileSelectionDialog,
00747 TInt aFileSelectionResourceId,
00748 TInt aFileNamePromptResourceId,
00749 const TDesC& aFileSelectionTitle,
00750 const TDesC& aFileNamePromptTitle,
00751 MAknFileFilter* aFileFilter,
00752 MAknMemorySelectionObserver* aMemorySelectionObserver,
00753 MAknFileSelectionObserver* aFileSelectionObserver,
00754 MAknFileSelectionObserver* aFileNamePromptObserver,
00755 const TDesC& aStartFolder,
00756 TInt aIncludedMedias );
00757
00758 };
00759
00760
00761 #endif