videocollection/tsrc/videoservicestestapp/inc/videoservicestestappview.h
changeset 39 f6d44a0cd476
child 66 adb51f74b890
equal deleted inserted replaced
38:ff53afa8ad05 39:f6d44a0cd476
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #ifndef VIDEOSERVICESTESTAPPVIEW_H_
       
    18 #define VIDEOSERVICESTESTAPPVIEW_H_
       
    19 
       
    20 #include <hbview.h>
       
    21 #include <xqappmgr.h>
       
    22 
       
    23 class XQApplicationManager;
       
    24 class XQAiwRequest;
       
    25 class HbLineEdit;
       
    26 
       
    27 class VideoServicesTestAppView : public HbView
       
    28 {
       
    29 	Q_OBJECT
       
    30 
       
    31 public:
       
    32 	VideoServicesTestAppView(QGraphicsItem *parent=0);
       
    33 	virtual ~VideoServicesTestAppView();
       
    34 
       
    35 private slots:
       
    36     void handleOk(const QVariant &result);
       
    37     void handleError(int errorCode, const QString& errorMessage);
       
    38 
       
    39     void fetchVideo();
       
    40     void fetchVideoDeprecatedOldService();
       
    41     void fetchVideoDeprecatedNewService();
       
    42     void browseCapturedVideos();
       
    43     void browseCapturedVideosDeprecatedOldService();
       
    44     void browseCapturedVideosDeprecatedNewService();
       
    45     
       
    46 public slots:
       
    47     
       
    48     void browseCapturedVideosFinished(HbAction *action);
       
    49     void browseCapturedVideosDeprecatedOldServiceFinished(HbAction *action);
       
    50     void browseCapturedVideosDeprecatedNewServiceFinished(HbAction *action);
       
    51 
       
    52 private:
       
    53     void createLayout();
       
    54 
       
    55 private:
       
    56     XQApplicationManager mAppMgr;
       
    57     XQAiwRequest* mReq;
       
    58     HbLineEdit* mResultEdit;
       
    59     HbLineEdit* mErrorCodeEdit;
       
    60     HbLineEdit* mErrorEdit;
       
    61 };
       
    62 
       
    63 #endif /* VIDEOSERVICESTESTAPPVIEW_H_ */