organizer_plat/calendar_common_utils_api/inc/calenlocationutil.h
branchRCL_3
changeset 31 97232defd20e
equal deleted inserted replaced
30:bd7edf625bdd 31:97232defd20e
       
     1 /*
       
     2  * Copyright (c) 2009 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: Utility class to inform calendar components if any Nokia map 
       
    15  * 			providers are available. Its a static API.
       
    16  *
       
    17  */
       
    18 
       
    19 
       
    20 #ifndef CALENLOCATIONUTIL_H
       
    21 #define CALENLOCATIONUTIL_H
       
    22 
       
    23 // System includes
       
    24 #include <e32base.h>
       
    25 #include <mnprovider.h>
       
    26 
       
    27 class CCalenLocationUtil : public CBase
       
    28 	{
       
    29 	
       
    30 public:
       
    31 	
       
    32 	/**
       
    33 	 * API to tell claendar modules if Nokia maps provider is available 
       
    34 	 * in the device or not.
       
    35 	 * 
       
    36 	 * @return ETrue if Nokia maps is installed on the device else EFalse.
       
    37 	 */
       
    38 	static TBool IsMapProviderAvailableL();
       
    39 
       
    40 	/**
       
    41 	 * Utility function to display list query with three strings.
       
    42 	 * This function will be used when user selects a map location 
       
    43 	 * when there is already some invalidated location for the event.
       
    44 	 * First string will be a combination of lod text and newly 
       
    45 	 * selected map locaiton. Second string will be newly selected map location.
       
    46 	 * Third strign will be old invalidated text.
       
    47 	 * 
       
    48 	 * @params aStrings Array of three strings.
       
    49 	 * @return 0 for first string, 1 for second and 2 for third string when user 
       
    50 	 * 			selects his choice. If cancelled, returns -1. 
       
    51 	 */
       
    52 	static TInt ShowLocationAppendOrReplaceL( 
       
    53 	                                          RPointerArray< HBufC >& aStrings );
       
    54 	
       
    55 	};
       
    56 
       
    57 #endif // CALENLOCATIONUTIL_H
       
    58 
       
    59 // End of file	--Don't remove this.