contentstorage/cahandler/app/tsrc/t_caapphandler/inc/T_caapphandlerplugin.h
changeset 117 c63ee96dbe5f
equal deleted inserted replaced
115:3ab5c078b490 117:c63ee96dbe5f
       
     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 /*
       
    18  * T_cahandler.h
       
    19  *
       
    20  *  Created on: 2009-09-16
       
    21  *      Author:
       
    22  */
       
    23 
       
    24 #ifndef T_CAAPPHANDLERPLUGIN_H
       
    25 #define T_CAAPPHANDLERPLUGIN_H
       
    26 
       
    27 class CaAppHandler;
       
    28 
       
    29 #include <e32base.h>
       
    30 #include <e32def.h>
       
    31 #include <QtTest/QtTest>
       
    32 
       
    33 //------------------------------------------------------------------------------
       
    34 
       
    35 
       
    36 /**
       
    37  *
       
    38  * Test class.
       
    39  *
       
    40  */
       
    41 class T_CaHandler: public QObject
       
    42 {
       
    43     Q_OBJECT
       
    44 public:
       
    45     T_CaHandler();
       
    46 private slots:
       
    47 
       
    48     //setup methods
       
    49     void initTestCase();
       
    50     void cleanup();
       
    51 
       
    52     void appHandlerConstruction();
       
    53     void appHandlerMultipleLoad();
       
    54     void appHandlerMultipleLoadAndDelete();
       
    55     void appHandlerOpenFails();
       
    56     void appHandlerRemoveFails();
       
    57     void appHandlerClose();
       
    58     void appHandlerRunApplication();
       
    59 
       
    60     void appHandlerRemoveApplication();
       
    61     void appHandlerRemoveJavaApplication();
       
    62 
       
    63     void testCCaTaskList();
       
    64     void appHandlerCreateInstance();
       
    65 private:
       
    66     TBool javaAppInstalled(TInt32 aUid);
       
    67 
       
    68 private:
       
    69     CaAppHandler *iAppHandler;
       
    70 };
       
    71 
       
    72 #endif // T_CAAPPHANDLERPLUGIN_H