phonebookui/cntcommonui/views/cntbaseselectionview.h
author hgs
Tue, 21 Sep 2010 17:07:25 +0300
changeset 72 6abfb1094884
parent 61 phonebookui/pbkcommonui/inc/cntbaseselectionview.h@d30183af6ca6
child 81 640d30f4fb64
permissions -rw-r--r--
201037

/*
* Copyright (c) 2009 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:
*
*/

#ifndef CNTBASESELECTIONVIEW_H
#define CNTBASESELECTIONVIEW_H

#include <cntabstractviewmanager.h>
#include <cntabstractview.h>
#include "cntglobal.h"

class HbListView;
class HbView;
class HbDocumentLoader;
class HbAction;
class CntListModel;


class QTPBK_EXPORT CntBaseSelectionView : public QObject, public CntAbstractView
{
    Q_OBJECT

public:
    CntBaseSelectionView();
    ~CntBaseSelectionView();

signals:
    void viewOpened( CntAbstractViewManager* aMgr, const CntViewParameters aArgs );
    void viewClosed();
    
public:
    void activate( const CntViewParameters aArgs );
    void deactivate();
    bool isDefault() const;
    HbView* view() const;
    
    void setEngine( CntAbstractEngine& aEngine ){ mEngine = &aEngine; }
    virtual int viewId() const = 0;
    
protected:
    HbDocumentLoader* mDocument;
    HbListView* mListView;
    HbView* mView;
    HbAction* mSoftkey;
    CntAbstractViewManager* mMgr;
    CntListModel* mListModel;
    CntAbstractEngine* mEngine;
};

#endif /* CNTBASESELECTIONVIEW_H */