mmaudio_plat/telephony_audio_routing_client_api/TelephonyAudioRouting_TestApp/inc/myplayerappui.h
author hgs
Tue, 02 Nov 2010 12:28:51 +0000
changeset 6 fe9d1bf55678
parent 5 b220a9341636
permissions -rw-r--r--
2010wk46_02

/*
* Copyright (c) 2002 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:  TelephonyAudioRouting Test Application
*
*/

#ifndef __MYPLAYERAPPUI_h__
#define __MYPLAYERAPPUI_h__

// INCLUDES
#include <aknappui.h>
#include "myplayer.h"
// FORWARD DECLARATIONS
class CMyPlayerAppView;

// CLASS DECLARATION
/**
 * CMyPlayerAppUi application UI class.
 * Interacts with the user through the UI and request message processing
 * from the handler class
 */
class CMyPlayerAppUi : public CAknAppUi
    {
public:
    // Constructors and destructor

    /**
     * ConstructL.
     * 2nd phase constructor.
     */
    void ConstructL();

    /**
     * CMyPlayerAppUi.
     * C++ default constructor. This needs to be public due to
     * the way the framework constructs the AppUi
     */
    CMyPlayerAppUi();

    /**
     * ~CMyPlayerAppUi.
     * Virtual Destructor.
     */
    virtual ~CMyPlayerAppUi();

private:
    // Functions from base classes

    /**
     * From CEikAppUi, HandleCommandL.
     * Takes care of command handling.
     * @param aCommand Command to be handled.
     */
    void HandleCommandL(TInt aCommand);

    /**
     *  HandleStatusPaneSizeChange.
     *  Called by the framework when the application status pane
     *  size is changed.
     */
    void HandleStatusPaneSizeChange();

    /**
     *  From CCoeAppUi, HelpContextL.
     *  Provides help context for the application.
     *  size is changed.
     */
    CArrayFix<TCoeHelpContext>* HelpContextL() const;

private:
    // Data

    /**
     * The application view
     * Owned by CMyPlayerAppUi
     */
    CMyPlayerAppView* iAppView;
    CMyPlayer* iPlayer;
    TFileName iFileToOpen;

    };

#endif // __MYPLAYERAPPUI_h__
// End of File