classicui_plat/common_file_dialogs_api/inc/MAknMemorySelectionObserver.h
changeset 46 0e1e0022bd03
equal deleted inserted replaced
45:667edd0b8678 46:0e1e0022bd03
       
     1 /*
       
     2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Observer interface for memory selection.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef M_AKNMEMORYSELECTIONOBSERVER_H
       
    21 #define M_AKNMEMORYSELECTIONOBSERVER_H
       
    22 
       
    23 #include <CAknMemorySelectionDialog.h>
       
    24 
       
    25 /**
       
    26 *  Observer class that can be set to observe if selected memory
       
    27 *  e.g. has enoung free space before letting dialog exit.
       
    28 *
       
    29 *  @lib CommonDialogs.lib
       
    30 *  @since 1.2
       
    31 */
       
    32 class MAknMemorySelectionObserver
       
    33     {
       
    34 
       
    35 public:
       
    36 
       
    37 // Constructors and destructor
       
    38 
       
    39     /**
       
    40      * A virtual destructor to ensure that correct destructor gets called.
       
    41      * Must have an empty implementation.
       
    42      */
       
    43     virtual ~MAknMemorySelectionObserver() { };
       
    44 
       
    45 // New functions
       
    46 
       
    47     /**
       
    48      * Get's called when user selects a memory.
       
    49      * @param aMemory Currently selected memory.
       
    50      * @return Returns ETrue if it is ok to exit from dialog.
       
    51      */
       
    52     virtual TBool OkToExitL( CAknMemorySelectionDialog::TMemory aMemory ) = 0;
       
    53 
       
    54     };
       
    55 
       
    56 #endif // M_AKNMEMORYSELECTIONOBSERVER_H