videocollection/videofiledetailsview/tsrc/testplugin/stub/inc/hbmessagebox.h
changeset 15 cf5481c2bc0b
child 24 7d93ee07fb27
equal deleted inserted replaced
2:dec420019252 15:cf5481c2bc0b
       
     1 /*
       
     2 * Copyright (c) 2008-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:  stub HbMessageBox class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef HBMESSAGEBOX_H
       
    20 #define HBMESSAGEBOX_H
       
    21 
       
    22 #include <QString>
       
    23 
       
    24 
       
    25 class HbMessageBox 
       
    26 {
       
    27    
       
    28 public:
       
    29     
       
    30     /**
       
    31      * saves provided text to mLatestTxt
       
    32      * returns mQuestionReturnValue
       
    33      */
       
    34     static bool question(QString text)
       
    35     {
       
    36         mLatestTxt = text;
       
    37         return mQuestionReturnValue;
       
    38     }
       
    39     
       
    40     /**
       
    41      * saves provided text to mLatestTxt
       
    42      */
       
    43     static void warning(QString text)
       
    44     {
       
    45         mLatestTxt = text;
       
    46     }
       
    47     
       
    48     /**
       
    49      * saves provided text to mLatestTxt
       
    50      */
       
    51     static void information(QString text)
       
    52     {
       
    53         mLatestTxt = text;
       
    54     }
       
    55     
       
    56     /**
       
    57      * returned from question
       
    58      */
       
    59     static bool mQuestionReturnValue;
       
    60     
       
    61     /**
       
    62      * saved text
       
    63      */
       
    64     static QString mLatestTxt;
       
    65     
       
    66 };
       
    67 
       
    68 
       
    69 
       
    70 #endif // HBMESSAGEBOX_H