locationpickerservice/inc/locationpickerappwindow.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:27:22 +0300
changeset 17 0f22fb80ebba
parent 15 13ae750350c9
child 20 cd10d5b85554
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: LocationPickerAppWindow declaration
*
*/

#ifndef LOCATIONPICKERAPPWINDOW_H
#define LOCATIONPICKERAPPWINDOW_H
#include <HbMainWindow>

#include "locationpickertypes.h"

// Forward declarations
class LocationPickerSearchView;
class LocationPickerDocumentLoader;
class LocationPickerPotraitView;
class LocationPickerService;
class LocationPickerProxyModel;
class LocationPickerLandscapeView;

class LocationPickerAppWindow: public HbMainWindow
{
    Q_OBJECT
public:
    // constructor
    LocationPickerAppWindow(QWidget *parent=0, Hb::WindowFlags 
            windowFlags=Hb::WindowFlagNone);
    
    // destructor
    ~LocationPickerAppWindow();

private:
    //Loads the Potrait View
    void loadPotrait();
    //Loads landscape View
    void loadLandscape();
    //Connect the slots for Potrait view
    void connectPotraitSlots();
    //Connect the slots for Landscape view
    void connectLandscapeSlots();
public slots:
    // a list item is selected
    void itemSelected( quint32 aLm );
private slots:
    //activate search view
    void activateSearchView();
    //activate locationpicker view
    void activateLocationPickerView();
    //changes the orientation
    void changeOrientation(Qt::Orientation);
    //complete the service
    void serviceComplete();
    //sets the category ID during orientation change in collection content
    void setCategoryID( quint32 acategoryId );
    //handles orientation change in collection list
    void handleCollectionList();
    //handle all List
    void allListHandle();
private:
    // search view
    LocationPickerSearchView* mLocationPickerSearchView;
    //document loader
    LocationPickerDocumentLoader* mLocationPickerDocumentLoader;
    //location picker potrait view
    LocationPickerPotraitView* mLocationPickerPotraitView;
    //location picker landscape view
    LocationPickerLandscapeView* mLocationPickerLandscapeView;
    //location picker service;
    LocationPickerService *mService;
    //View Type
    TViewType mviewType;
};
#endif // LOCATIONPICKERAPPWINDOW_H