1.1 --- a/epoc32/include/app/clmklandmarkselectordlg.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/app/clmklandmarkselectordlg.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -2,9 +2,9 @@
1.4 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
1.5 * All rights reserved.
1.6 * This component and the accompanying materials are made available
1.7 -* 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.8 +* under the terms of "Eclipse Public License v1.0"
1.9 * which accompanies this distribution, and is available
1.10 -* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.12 *
1.13 * Initial Contributors:
1.14 * Nokia Corporation - initial contribution.
1.15 @@ -61,6 +61,20 @@
1.16 * @return new instance of this class
1.17 */
1.18 IMPORT_C static CLmkLandmarkSelectorDlg* NewL();
1.19 +
1.20 + /**
1.21 + * This is a static function, which creates and returns an instance of this class.
1.22 + * All the landmarks present in the user specified landmark database are shown in the selector.
1.23 + * @param[in] aDatabaseUri The URI of the databases to open.
1.24 + *
1.25 + * @leave Leaves with KErrNotSupported if framework functionality is not available or
1.26 + * the protocol specified in URI is not supported.
1.27 + * @leave Leaves with KErrArgument if an empty string is passed as argument or
1.28 + * extension of the local database name is not "ldb".
1.29 + * @panic Panics with system-wide panic codes.
1.30 + * @return new instance of this class
1.31 + */
1.32 + IMPORT_C static CLmkLandmarkSelectorDlg* NewL( const TDesC& aDatabaseUri );
1.33
1.34 /**
1.35 * Destructor.
1.36 @@ -105,6 +119,18 @@
1.37 * @return Returns non-zero if accepted, else zero.
1.38 */
1.39 IMPORT_C TInt ExecuteLD( RArray<TLmkItemIdDbCombiInfo>& aSelectedItems );
1.40 +
1.41 + /**
1.42 + * This function sets the title string of the landmark selector dialog.
1.43 + * This function has to be called before ExecuteLD() to make the set title appear on ui.
1.44 + * Calling this api after ExecuteLD() will not have any impact.
1.45 + *
1.46 + * @param [in] aTitle The title string of the selector dialog.
1.47 + * @panic Panics with KLmkPanicNullMember, if the selector is not
1.48 + * constructed properly.
1.49 + */
1.50 + IMPORT_C void SetDialogTitleL(const TDesC& aTitle );
1.51 +
1.52 private:
1.53 /**
1.54 * C++ default constructor.
1.55 @@ -123,6 +149,9 @@
1.56 // ETrue if executed in multiple item selector mode
1.57 TBool iIsMultiSelector;
1.58
1.59 + // User defined database set to be viewed in selector
1.60 + HBufC* iDatabaseUri;
1.61 +
1.62 /// Own: Search implementor object
1.63 CLmkDlgSelectorImplBase* iSelector;
1.64