1.1 --- a/epoc32/include/mw/maknfileselectionobserver.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/mw/maknfileselectionobserver.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,59 @@
1.4 -maknfileselectionobserver.h
1.5 +/*
1.6 +* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
1.7 +* All rights reserved.
1.8 +* This component and the accompanying materials are made available
1.9 +* 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
1.10 +* which accompanies this distribution, and is available
1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.12 +*
1.13 +* Initial Contributors:
1.14 +* Nokia Corporation - initial contribution.
1.15 +*
1.16 +* Contributors:
1.17 +*
1.18 +* Description: Observer interface for file selection.
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +#ifndef MAKNFILESELECTIONOBSERVER_H
1.24 +#define MAKNFILESELECTIONOBSERVER_H
1.25 +
1.26 +// INCLUDES
1.27 +#include <E32STD.H>
1.28 +
1.29 +// FORWARD DECLARATIONS
1.30 +class TEntry;
1.31 +
1.32 +// CLASS DEFINITION
1.33 +/**
1.34 +* Observer class that can be set to observe if selected item
1.35 +* e.g. has correct size or date before letting dialog exit.
1.36 +*
1.37 +* @lib CommonDialogs.lib
1.38 +* @since 1.2
1.39 +*/
1.40 +class MAknFileSelectionObserver
1.41 + {
1.42 + public: // Constructors and destructor
1.43 +
1.44 + /**
1.45 + * A virtual destructor to ensure that correct destructor gets called.
1.46 + * Must have an empty implementation.
1.47 + */
1.48 + virtual ~MAknFileSelectionObserver() { };
1.49 +
1.50 + public: // New functions
1.51 +
1.52 + /**
1.53 + * Get's called when user selects an file.
1.54 + * @param aDriveAndPath Drive and full path of the file.
1.55 + * @param aEntry An entry containing all information of selected item.
1.56 + * @return Returns ETrue if it is ok to exit from dialog.
1.57 + */
1.58 + virtual TBool OkToExitL( const TDesC& aDriveAndPath, const TEntry& aEntry ) = 0;
1.59 + };
1.60 +
1.61 +#endif // MAKNFILESELECTIONOBSERVER_H
1.62 +
1.63 +// End of File