Back to index

lightning-sunbird  0.9+nobinonly
ITestParams.idl
Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00003  *
00004  * The contents of this file are subject to the Mozilla Public License Version
00005  * 1.1 (the "License"); you may not use this file except in compliance with
00006  * the License. You may obtain a copy of the License at
00007  * http://www.mozilla.org/MPL/
00008  *
00009  * Software distributed under the License is distributed on an "AS IS" basis,
00010  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011  * for the specific language governing rights and limitations under the
00012  * License.
00013  *
00014  * The Original Code is Java XPCOM Bindings.
00015  *
00016  * The Initial Developer of the Original Code is
00017  * IBM Corporation.
00018  * Portions created by the Initial Developer are Copyright (C) 2005
00019  * IBM Corporation. All Rights Reserved.
00020  *
00021  * Contributor(s):
00022  *   Javier Pedemonte (jhpedemonte@gmail.com)
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either the GNU General Public License Version 2 or later (the "GPL"), or
00026  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 
00038 #include "nsISupports.idl"
00039 
00040 interface nsILocalFile;
00041 
00042 [scriptable, uuid(c4baf2d9-9fa8-4e17-a88a-d81b052b73e1)]
00043 interface ITestParams : nsISupports
00044 {
00045 /* TEST 'ARRAY' 'IN' PARAMS */
00046 
00050   void testSimpleTypeArrayIn(in unsigned long count,
00051                              [array, size_is (count)] in octet array);
00052 
00056   void testCharStrTypeArrayIn(in unsigned long count,
00057                               [array, size_is (count)] in string array);
00058 
00062   void testWCharStrTypeArrayIn(in unsigned long count,
00063                                [array, size_is (count)] in wstring array);
00064 
00068   void testIIDTypeArrayIn(in unsigned long count,
00069                           [array, size_is (count)] in nsIIDPtr array);
00070 
00074   void testIfaceTypeArrayIn(in unsigned long count,
00075                             [array, size_is (count)] in nsILocalFile array);
00076 
00077 
00078 /* TEST 'ARRAY' 'INOUT' PARAMS */
00079 
00083   void testSimpleTypeArrayInOut(in unsigned long count,
00084                                 [array, size_is (count)] inout short array);
00085 
00089   void testCharStrTypeArrayInOut(in unsigned long count,
00090                                  [array, size_is (count)] inout string array);
00091 
00095   void testWCharStrTypeArrayInOut(in unsigned long count,
00096                                 [array, size_is (count)] inout wstring array);
00097 
00101   void testIIDTypeArrayInOut(in unsigned long count,
00102                              [array, size_is (count)] inout nsIIDPtr array);
00103 
00107   void testIfaceTypeArrayInOut(in unsigned long count,
00108                              [array, size_is (count)] inout nsILocalFile array);
00109 
00110 
00111 /* TEST 'ARRAY' 'OUT' PARAMS */
00112 
00116   void testSimpleTypeArrayOut(out unsigned long count,
00117                               [array, size_is (count)] out char array);
00118 
00122   void testCharStrTypeArrayOut(out unsigned long count,
00123                                [array, size_is (count)] out string array);
00124 
00128   void testWCharStrTypeArrayOut(out unsigned long count,
00129                                 [array, size_is (count)] out wstring array);
00130 
00134   void testIIDTypeArrayOut(out unsigned long count,
00135                            [array, size_is (count)] out nsIIDPtr array);
00136 
00140   void testIfaceTypeArrayOut(out unsigned long count,
00141                              [array, size_is (count)] out nsILocalFile array);
00142 
00143 
00144 /* TEST 'ARRAY' 'RETVAL' PARAMS */
00145 
00149   void returnSimpleTypeArray(out unsigned long count,
00150                      [array, size_is (count), retval] out unsigned long result);
00151 
00155   void returnCharStrTypeArray(out unsigned long count,
00156                             [array, size_is (count), retval] out string result);
00157 
00161   void returnWCharStrTypeArray(out unsigned long count,
00162                            [array, size_is (count), retval] out wstring result);
00163 
00167   void returnIIDTypeArray(out unsigned long count,
00168                           [array, size_is (count), retval] out nsIIDPtr result);
00169 
00173   void returnIfaceTypeArray(out unsigned long count,
00174                       [array, size_is (count), retval] out nsILocalFile result);
00175 };