logsui/logsapp/inc/logsabstractviewmanager.h
author hgs
Fri, 15 Oct 2010 14:47:48 +0300
changeset 21 2f0af9ba7665
parent 0 4a5361db8937
permissions -rw-r--r--
201041

/*
* 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 LOGABSTRACTVIEWMANAGER_H
#define LOGABSTRACTVIEWMANAGER_H


#include "logsdefs.h"
class HbMainWindow;

/**
 * For view changing.
 */
class LogsAbstractViewManager
{
public:
    
    /**
     * Activate view. Previously active view is deactivated.
     * @param viewId, id for activated view
     * @return true if activated succesfully, otherwise false
     */
    virtual bool activateView(LogsAppViewId viewId) = 0;
    
    /**
     * Activate view by giving activation arguments. Previously active
     * view is deactivated.
     * @param viewId, id for activated view
     * @param showDialer, true if view should show dialer when activated
     * @param args, custom arguments for view
     * @return true if activated succesfully, otherwise false
     */
    virtual bool activateView(LogsAppViewId viewId, bool showDialer, QVariant args, const QString& dialpadText = QString()) = 0;
    
    /**
     * Activate previous view.
     * @return true if activated succesfully, otherwise false
     */
    virtual bool activatePreviousView(bool showDialpad,  const QString& dialpadText) = 0;
    
    /**
     * Returns application main window
     */
    virtual HbMainWindow& mainWindow() = 0;
    
    /**
     * Exit the application.
     */
    virtual void exitApplication() = 0;
    
};

#endif //LOGABSTRACTVIEWMANAGER_H