williamr@2: /* williamr@2: * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * 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 williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: Observer interface for file selection. williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: #ifndef MAKNFILESELECTIONOBSERVER_H williamr@2: #define MAKNFILESELECTIONOBSERVER_H williamr@2: williamr@2: // INCLUDES williamr@2: #include williamr@2: williamr@2: // FORWARD DECLARATIONS williamr@2: class TEntry; williamr@2: williamr@2: // CLASS DEFINITION williamr@2: /** williamr@2: * Observer class that can be set to observe if selected item williamr@2: * e.g. has correct size or date before letting dialog exit. williamr@2: * williamr@2: * @lib CommonDialogs.lib williamr@2: * @since 1.2 williamr@2: */ williamr@2: class MAknFileSelectionObserver williamr@2: { williamr@2: public: // Constructors and destructor williamr@2: williamr@2: /** williamr@2: * A virtual destructor to ensure that correct destructor gets called. williamr@2: * Must have an empty implementation. williamr@2: */ williamr@2: virtual ~MAknFileSelectionObserver() { }; williamr@2: williamr@2: public: // New functions williamr@2: williamr@2: /** williamr@2: * Get's called when user selects an file. williamr@2: * @param aDriveAndPath Drive and full path of the file. williamr@2: * @param aEntry An entry containing all information of selected item. williamr@2: * @return Returns ETrue if it is ok to exit from dialog. williamr@2: */ williamr@2: virtual TBool OkToExitL( const TDesC& aDriveAndPath, const TEntry& aEntry ) = 0; williamr@2: }; williamr@2: williamr@2: #endif // MAKNFILESELECTIONOBSERVER_H williamr@2: williamr@2: // End of File