videocollection/tsrc/videoservicestestapp/inc/videoservicestestappview.h
author hgs
Fri, 28 May 2010 09:45:19 +0300
changeset 39 f6d44a0cd476
child 66 adb51f74b890
permissions -rw-r--r--
201021

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

#include <hbview.h>
#include <xqappmgr.h>

class XQApplicationManager;
class XQAiwRequest;
class HbLineEdit;

class VideoServicesTestAppView : public HbView
{
	Q_OBJECT

public:
	VideoServicesTestAppView(QGraphicsItem *parent=0);
	virtual ~VideoServicesTestAppView();

private slots:
    void handleOk(const QVariant &result);
    void handleError(int errorCode, const QString& errorMessage);

    void fetchVideo();
    void fetchVideoDeprecatedOldService();
    void fetchVideoDeprecatedNewService();
    void browseCapturedVideos();
    void browseCapturedVideosDeprecatedOldService();
    void browseCapturedVideosDeprecatedNewService();
    
public slots:
    
    void browseCapturedVideosFinished(HbAction *action);
    void browseCapturedVideosDeprecatedOldServiceFinished(HbAction *action);
    void browseCapturedVideosDeprecatedNewServiceFinished(HbAction *action);

private:
    void createLayout();

private:
    XQApplicationManager mAppMgr;
    XQAiwRequest* mReq;
    HbLineEdit* mResultEdit;
    HbLineEdit* mErrorCodeEdit;
    HbLineEdit* mErrorEdit;
};

#endif /* VIDEOSERVICESTESTAPPVIEW_H_ */