svgtopt/SVG/SVGImpl/inc/SVGTestsImpl.h
changeset 46 88edb906c587
equal deleted inserted replaced
-1:000000000000 46:88edb906c587
       
     1 /*
       
     2 * Copyright (c) 2003 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:  SVG Implementation header file
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __INC_CSVGTESTSIMPL__
       
    20 #define __INC_CSVGTESTSIMPL__
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <badesca.h>
       
    24 #include "SVGTests.h"
       
    25 
       
    26 /// Implements SvgTests interface. Elements implementing this interface should
       
    27 /// provide wrappers. Note that not all SVG elements implement this interface
       
    28 /// in SVG DOM.
       
    29 
       
    30 
       
    31 /**
       
    32  * Class description goes here.
       
    33  *
       
    34  *  @lib SVGEngine.lib
       
    35  *  @since 1.0
       
    36  */
       
    37 class CSvgTestsImpl : public CBase, public MSvgTests
       
    38     {
       
    39     public:
       
    40 
       
    41 
       
    42         /**
       
    43          * Need method description
       
    44          *
       
    45          * @since 1.0
       
    46          * @param 
       
    47          * @return
       
    48          */
       
    49         static CSvgTestsImpl*   NewL();
       
    50 
       
    51 
       
    52         /**
       
    53          * Need method description
       
    54          *
       
    55          * @since 1.0
       
    56          * @param 
       
    57          * @return
       
    58          */
       
    59         static CSvgTestsImpl*   NewLC();
       
    60 
       
    61 
       
    62         /**
       
    63          * Need method description
       
    64          *
       
    65          * @since 1.0
       
    66          * @param 
       
    67          * @return
       
    68          */
       
    69                                 ~CSvgTestsImpl();
       
    70 
       
    71         // From MSvgTests
       
    72 
       
    73 
       
    74         /**
       
    75          * Need method description
       
    76          *
       
    77          * @since 1.0
       
    78          * @param 
       
    79          * @return
       
    80          */
       
    81         void                    GetRequiredFeatures( const CDesCArrayFlat*& aRequiredFeatures );
       
    82 
       
    83 
       
    84         /**
       
    85          * Need method description
       
    86          *
       
    87          * @since 1.0
       
    88          * @param 
       
    89          * @return
       
    90          */
       
    91         void                    GetRequiredExtensions( const CDesCArrayFlat*& aRequiredExtensions );
       
    92 
       
    93 
       
    94         /**
       
    95          * Need method description
       
    96          *
       
    97          * @since 1.0
       
    98          * @param 
       
    99          * @return
       
   100          */
       
   101         TBool                   GetSystemLanguage( const CDesCArrayFlat*& aSystemLanguage );
       
   102 
       
   103 
       
   104         /**
       
   105          * Need method description
       
   106          *
       
   107          * @since 1.0
       
   108          * @param 
       
   109          * @return
       
   110          */
       
   111         TBool                   HasExtension( const TDesC& aExtension );
       
   112 
       
   113 
       
   114         /**
       
   115          * Need method description
       
   116          *
       
   117          * @since 1.0
       
   118          * @param 
       
   119          * @return
       
   120          */
       
   121         TBool                   HasFeature( const TDesC& aFeature );
       
   122 
       
   123 		TBool 					HasAnyTests();
       
   124 		
       
   125         // Implementation
       
   126 
       
   127 		/**
       
   128          * Need method description
       
   129          *
       
   130          * @since 1.0
       
   131          * @param 
       
   132          * @return
       
   133          */
       
   134 		TBool SetSystemLanguageAttribute( const TDesC& aValue  );
       
   135 		
       
   136 		/**
       
   137          * Need method description
       
   138          *
       
   139          * @since 1.0
       
   140          * @param 
       
   141          * @return
       
   142          */
       
   143          
       
   144 		TBool SetRequiredExtensionAttribute( const TDesC& aValue  );
       
   145         
       
   146         /**
       
   147          * Need method description
       
   148          *
       
   149          * @since 1.0
       
   150          * @param 
       
   151          * @return
       
   152          */
       
   153          
       
   154         TBool SetRequiredFeatureAttribute( const TDesC& aValue  );
       
   155         
       
   156         /**
       
   157          * Need method description
       
   158          *
       
   159          * @since 1.0
       
   160          * @param 
       
   161          * @return
       
   162          */
       
   163         TBool                   SetTestAttributeL( const TDesC& aPropertyName,
       
   164                                                    const TDesC& aValue );
       
   165 
       
   166 
       
   167 		    // functions for encoding
       
   168 
       
   169 	    void                    SetRequiredFeatures(  CDesCArrayFlat*& aRequiredFeatures );
       
   170 
       
   171 
       
   172         /**
       
   173          * Need method description
       
   174          *
       
   175          * @since 1.0
       
   176          * @param 
       
   177          * @return
       
   178          */
       
   179         void                    SetRequiredExtensions(  CDesCArrayFlat*& aRequiredExtensions );
       
   180 
       
   181 
       
   182         /**
       
   183          * Need method description
       
   184          *
       
   185          * @since 1.0
       
   186          * @param 
       
   187          * @return
       
   188          */
       
   189         void                    SetSystemLanguage(  CDesCArrayFlat*& aSystemLanguage );
       
   190 
       
   191 
       
   192         /**
       
   193          * Need method description
       
   194          *
       
   195          * @since 1.0
       
   196          * @param 
       
   197          * @return
       
   198          */
       
   199         CSvgTestsImpl*          CloneL();
       
   200 
       
   201     private:
       
   202 
       
   203 
       
   204         /**
       
   205          * Need method description
       
   206          *
       
   207          * @since 1.0
       
   208          * @param 
       
   209          * @return
       
   210          */
       
   211         void                    ConstructL();
       
   212 
       
   213         CDesCArrayFlat*         iRequiredFeatures;
       
   214 
       
   215         CDesCArrayFlat*         iRequiredExtensions;
       
   216 
       
   217         CDesCArrayFlat*         iSystemLanguage;
       
   218         
       
   219         TBool					iSystemLanguageEmpty;
       
   220     };
       
   221 
       
   222 #endif /* __INC_CSVGTESTSIMPL__ */