homescreensrv_plat/sapi_homescreenplugin/tsrc/hspsconfigurationif/inc/mt_hsps_requestnotify_4.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Test case RequestNotify(4) test data
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_MT_HSPS_REQUESTNOTIFY_4_H
       
    20 #define C_MT_HSPS_REQUESTNOTIFY_4_H
       
    21 
       
    22 /* 
       
    23 RequestNotify(4)
       
    24 ----------------
       
    25  
       
    26 Test purpose
       
    27 
       
    28 The purpose of this test case is to verify that asynchronous client notification 
       
    29 is sent after the plugin is activated and reactivated
       
    30 
       
    31 Pre-conditions
       
    32 
       
    33 There must be installed test themes for Active Idle application and Typical 
       
    34 configuration must be set as active
       
    35 
       
    36 Test steps
       
    37 
       
    38 Test step 1:
       
    39 •   Input:
       
    40     RequestNotification()
       
    41 •   Trigger:
       
    42     Existing plugin is activated
       
    43 •   Expected output:
       
    44     Notification including:
       
    45     o   Event “PluginActivated”
       
    46     o   Active application configuration UID
       
    47     o   Activated plugin UID
       
    48     o   Activated plugin id
       
    49 
       
    50 Test step 2:
       
    51 •   Input:
       
    52     RequestNotification()
       
    53 •   Trigger:
       
    54     Existing plugin is activated
       
    55 •   Expected output:
       
    56     Notification including:
       
    57     o   Event “PluginActivated”
       
    58     o   Active application configuration UID
       
    59     o   Activated plugin UID
       
    60     o   Activated plugin id
       
    61 
       
    62 */
       
    63 
       
    64 // Test step 1 method:
       
    65 
       
    66 const TUint8 requestnotify_4_ts_1_method[] = "RequestNotification";
       
    67 
       
    68 // Test step 1 input:
       
    69 
       
    70 const TUint8 requestnotify_4_ts_1_input = 0;
       
    71 
       
    72 // Test step 1 output:
       
    73 
       
    74 const TUint8 requestnotify_4_ts_1_output[] = {
       
    75 // RequestNotification (Output)
       
    76 // - Version 1.0
       
    77 // - Item count (LE)
       
    78 10,
       
    79 1,0,0,0,
       
    80 // - RequestNotification (Output)::notification (map)
       
    81 //   - Variant name
       
    82 //     - Version 1.0
       
    83 //     - Semantic ID (LE)    
       
    84 //     - Variant name length (LE)
       
    85 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
    86 //     - Variant name
       
    87 10,
       
    88 12,0,0,0,
       
    89 12,0,0,0,
       
    90 50,
       
    91 'n','o','t','i','f','i','c','a','t','i','o','n',
       
    92 // - Variant value
       
    93 //   - Version 1.0
       
    94 //   - Variant value type, EVariantTypeMap
       
    95 10,
       
    96 8,
       
    97 // - Notification
       
    98 //   - Version 1.0
       
    99 //   - Item count (LE)
       
   100 10,
       
   101 6,0,0,0,
       
   102 // - Notification(Output)::event
       
   103 //   - Variant name
       
   104 //     - Version 1.0
       
   105 //     - Semantic ID (LE)    
       
   106 //     - Variant name length (LE)
       
   107 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
   108 //     - Variant name
       
   109 10,
       
   110 12,0,0,0,
       
   111 5,0,0,0,
       
   112 22,
       
   113 'e','v','e','n','t',
       
   114 // - Notification(Output)::event
       
   115 //   - Variant value
       
   116 //     - Version 1.0
       
   117 //     - Variant value type, EVariantTypeDesC
       
   118 //     - Variant value length (LE)
       
   119 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
   120 //     - Variant value
       
   121 10,
       
   122 5,
       
   123 15,0,0,0,
       
   124 62,
       
   125 'P','l','u','g','i','n','A','c','t','i','v','a','t','e','d',
       
   126 // - Notification(Output)::appConfUid
       
   127 //   - Variant name
       
   128 //     - Version 1.0
       
   129 //     - Semantic ID (LE)    
       
   130 //     - Variant name length (LE)
       
   131 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
   132 //     - Variant name
       
   133 10,
       
   134 12,0,0,0,
       
   135 10,0,0,0,
       
   136 42,
       
   137 'a','p','p','C','o','n','f','U','i','d',
       
   138 // - Notification(Output)::pluginUid
       
   139 //   - Variant value
       
   140 //     - Version 1.0
       
   141 //     - Variant value type, EVariantTypeDesC
       
   142 //     - Variant value length (LE)
       
   143 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
   144 //     - Variant value
       
   145 10,
       
   146 5,
       
   147 10,0,0,0,
       
   148 42,
       
   149 '0','x','2','0','0','0','b','1','1','0',
       
   150 // - Notification(Output)::origUid
       
   151 //   - Variant name
       
   152 //     - Version 1.0
       
   153 //     - Semantic ID (LE)    
       
   154 //     - Variant name length (LE)
       
   155 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
   156 //     - Variant name
       
   157 10,
       
   158 12,0,0,0,
       
   159 7,0,0,0,
       
   160 30,
       
   161 'o','r','i','g','U','i','d',
       
   162 // - RequestNotification(Output)::origUid
       
   163 //   - Variant value
       
   164 //     - Version 1.0
       
   165 //     - Variant value type, EVariantTypeDesC
       
   166 //     - Variant value length (LE)
       
   167 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
   168 //     - Variant value
       
   169 10,
       
   170 5,
       
   171 0,0,0,0,
       
   172 2,
       
   173 // - Notification(Output)::pluginName
       
   174 //   - Variant name
       
   175 //     - Version 1.0
       
   176 //     - Semantic ID (LE)    
       
   177 //     - Variant name length (LE)
       
   178 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
   179 //     - Variant name
       
   180 10,
       
   181 12,0,0,0,
       
   182 4,0,0,0,
       
   183 18,
       
   184 'n','a','m','e',
       
   185 // - Notification(Output)::event
       
   186 //   - Variant value
       
   187 //     - Version 1.0
       
   188 //     - Variant value type, EVariantTypeDesC
       
   189 //     - Variant value length (LE)
       
   190 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
   191 //     - Variant value
       
   192 10,
       
   193 5,
       
   194 0,0,0,0,
       
   195 2,
       
   196 // - Notification(Output)::pluginUid
       
   197 //   - Variant name
       
   198 //     - Version 1.0
       
   199 //     - Semantic ID (LE)    
       
   200 //     - Variant name length (LE)
       
   201 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
   202 //     - Variant name
       
   203 10,
       
   204 12,0,0,0,
       
   205 9,0,0,0,
       
   206 38,
       
   207 'p','l','u','g','i','n','U','i','d',
       
   208 // - Notification(Output)::pluginUid
       
   209 //   - Variant value
       
   210 //     - Version 1.0
       
   211 //     - Variant value type, EVariantTypeDesC
       
   212 //     - Variant value length (LE)
       
   213 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
   214 //     - Variant value
       
   215 10,
       
   216 5,
       
   217 10,0,0,0,
       
   218 42,
       
   219 '0','x','2','0','0','0','b','1','1','2',
       
   220 // -  Notification(Output)::pluginIds
       
   221 //   - Variant name
       
   222 //     - Version 1.0
       
   223 //     - Semantic ID (LE)    
       
   224 //     - Variant name length (LE)
       
   225 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
   226 //     - Variant name
       
   227 10,
       
   228 12,0,0,0,
       
   229 9,0,0,0,
       
   230 38,
       
   231 'p','l','u','g','i','n','I','d','s',
       
   232 // - Notification::pluginIds
       
   233 //   - Variant value
       
   234 //     - Version 1.0
       
   235 //     - Variant value type, EVariantTypeList
       
   236 10,
       
   237 7,
       
   238 // - Notification::pluginIds
       
   239 //   - Version 1.0
       
   240 //   - Item count (LE)
       
   241 10,
       
   242 1,0,0,0,
       
   243 // Notification::pluginIds
       
   244 // - Version 1.0
       
   245 // - List item starts
       
   246 10,
       
   247 0,0,0,0,
       
   248 // -  Notification::pluginIds[0]
       
   249 //   - Variant value
       
   250 //     - Version 1.0
       
   251 //     - Variant value type, EVariantTypeDesC
       
   252 //     - Variant value length (LE)
       
   253 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
   254 //     - Variant value
       
   255 10,
       
   256 5,
       
   257 1,0,0,0,
       
   258 6,
       
   259 '5'
       
   260 };
       
   261 
       
   262 // Test step 1 trigger:
       
   263 
       
   264 const TInt requestnotify_4_ts_1_trigger = 4;
       
   265 
       
   266 // Test step 1 method:
       
   267 
       
   268 #define requestnotify_4_ts_2_method requestnotify_4_ts_1_method
       
   269 
       
   270 // Test step 1 input:
       
   271 
       
   272 #define requestnotify_4_ts_2_input requestnotify_4_ts_1_input
       
   273 
       
   274 // Test step 1 output:
       
   275 
       
   276 #define requestnotify_4_ts_2_output requestnotify_4_ts_1_output
       
   277 
       
   278 // Test step 2 trigger:
       
   279 
       
   280 #define requestnotify_4_ts_2_trigger requestnotify_4_ts_1_trigger
       
   281 
       
   282 
       
   283 #endif // C_MT_HSPS_REMOVEPLUGIN_4_H