camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxeimagedataitemsymbian/unittest_cxeimagedataitemsymbian.h
changeset 19 d9aefe59d544
child 45 24fd82631616
equal deleted inserted replaced
3:8b2d6d0384b0 19:d9aefe59d544
       
     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 UNITTEST_CXEIMAGEDATAITEMSYMBIAN_H
       
    18 #define UNITTEST_CXEIMAGEDATAITEMSYMBIAN_H
       
    19 
       
    20 #include <QObject>
       
    21 
       
    22 #include "cxenamespace.h"
       
    23 
       
    24 class CxeImageDataItemSymbian;
       
    25 class CxeStillImageSymbian;
       
    26 
       
    27 class UnitTestCxeImageDataItemSymbian : public QObject
       
    28 {
       
    29     Q_OBJECT
       
    30 
       
    31 public:
       
    32     UnitTestCxeImageDataItemSymbian();
       
    33     ~UnitTestCxeImageDataItemSymbian();
       
    34 
       
    35 private slots:
       
    36     void init();
       
    37     void cleanup();
       
    38     void testSave();
       
    39     void testSaveFail();
       
    40     void testPath();
       
    41 
       
    42 private:
       
    43     QString generateImageFileName(int counter);
       
    44     QString generateImageFileNameWithLetter(int counter, QString letter);
       
    45 
       
    46 private:
       
    47     CxeImageDataItemSymbian *mImageDataItem; // This will be recreated for each test
       
    48     QString mPath;
       
    49 };
       
    50 
       
    51 #endif // UNITTEST_CXEIMAGEDATAITEMSYMBIAN_H