contentstorage/casrv/cawidgetscanner/tsrc/t_cawidgetscanner/inc/t_cawidgetscanner.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_cahswidgetscanner.h
       
    19  *
       
    20  *  Created on: 2009-09-16
       
    21  *      Author:
       
    22  */
       
    23 
       
    24 #ifndef T_CAWIDGETSCANNER_H
       
    25 #define T_CAWIDGETSCANNER_H
       
    26 
       
    27 class CTestUtils;
       
    28 class CCaStorageProxy;
       
    29 class CCaSrvManager;
       
    30 class CCaSrvEngUtils;
       
    31 class T_CaInstaller;
       
    32 class CCaSrvPlugin;
       
    33 
       
    34 #include <QtTest/QtTest>
       
    35 
       
    36 #include <e32def.h>
       
    37 #include <f32file.h>
       
    38 
       
    39 
       
    40 
       
    41 namespace Usif{
       
    42     class RSoftwareComponentRegistry; 
       
    43 }
       
    44 
       
    45 
       
    46 class T_CaWidgetScanner: public QObject
       
    47     {
       
    48     Q_OBJECT
       
    49 
       
    50 private:
       
    51 
       
    52     void WaitL(TInt aMicroSec);
       
    53     TInt AppendMmcIdL(const TDesC& aText);
       
    54     TBool MmcAttributeSetL(TInt aId);
       
    55     void createImportDirectoryL();
       
    56     
       
    57     void testUpdateWidgetTrapped();
       
    58     void testUpdateTheSameWidgetTrapped();
       
    59     void testUpdateMmcRemoveInsertTrapped();
       
    60     
       
    61 private slots:
       
    62 
       
    63     void initTestCase();
       
    64     void cleanupTestCase();
       
    65     void init();
       
    66     void cleanup();
       
    67 
       
    68 
       
    69     //tests for widget scanner
       
    70 
       
    71     void testPluginNewL();
       
    72     void testRemoveMmcWidget();
       
    73     void testUpdateMmcRemoveInsert();  
       
    74     void testAddWidget();
       
    75     void testUpdateWidget();
       
    76     void testUpdateTheSameWidget();       
       
    77     void testRemoveWidget();
       
    78     void testSetMissingFlag();  
       
    79     void testSetLocalizationsL();
       
    80     void testUtils();
       
    81     void testParsePreviewImageName();
       
    82     void testParseIconName();
       
    83     void testCloneWidgetDescriptionL();
       
    84     
       
    85 
       
    86 private:
       
    87 
       
    88     CTestUtils* iTestUtils;
       
    89     
       
    90     CCaSrvEngUtils* iSrvEngUtils;
       
    91     
       
    92     Usif::RSoftwareComponentRegistry *iScr;
       
    93 
       
    94     CCaStorageProxy* iStorage;
       
    95 
       
    96     RFs iFs;
       
    97     
       
    98     RBuf iImportPath;
       
    99     RBuf iWidgetScanFolder;
       
   100     RBuf iWidgetScanFile1;
       
   101     
       
   102     CCaSrvPlugin* iPlugin;
       
   103     
       
   104     
       
   105     CCaSrvManager* iSrvManager;
       
   106     
       
   107     T_CaInstaller *iInstaller;
       
   108     };
       
   109 
       
   110 #endif // T_CAWIDGETSCANNER_H