locationpickerservice/inc/locationpickerservice.h
branchRCL_3
changeset 17 1fc85118c3ae
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
       
     1 /*
       
     2 * Copyright (c) 2010 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: LocationPickerService declaration
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef LOCATIONPICKERSERVICE_H
       
    19 #define LOCATIONPICKERSERVICE_H
       
    20 
       
    21 #include <xqserviceprovider.h>
       
    22 #include "qlocationpickeritem.h"
       
    23 
       
    24 class LocationPickerAppWindow;
       
    25 /**
       
    26  *  LocationPickerService
       
    27  * 
       
    28  */	
       
    29 class LocationPickerService : public XQServiceProvider
       
    30 {
       
    31     Q_OBJECT
       
    32 
       
    33 public:
       
    34 
       
    35     // constructor
       
    36     LocationPickerService( LocationPickerAppWindow *aParent = 0 );
       
    37 
       
    38     // destructor
       
    39     ~LocationPickerService();
       
    40 
       
    41     // item selection complete
       
    42     void complete( QLocationPickerItem aLm);
       
    43     
       
    44     // is active
       
    45     bool isActive();
       
    46 
       
    47 public slots:
       
    48     //for QTHighway to notify provider about request
       
    49      void pick();
       
    50     
       
    51 private:
       
    52 
       
    53     // handle to the application main window
       
    54     LocationPickerAppWindow* mServiceApp;
       
    55     int mAsyncReqId;
       
    56     QLocationPickerItem mReturn;
       
    57 };
       
    58 
       
    59 #endif // LOCATIONPICKERSERVICE_H