epoc32/include/mw/maknmemoryselectionobserver.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.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