PageRenderTime 45ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 1ms

/mozilla/mozilla/dist/include/appcomps/nsIWindowsHooks.h

http://kmbrasil.codeplex.com
C++ Header | 595 lines | 410 code | 91 blank | 94 comment | 0 complexity | 10b4cf63c2faeba25e24a354bd152b83 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, GPL-2.0
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM h:/projects/mozilla/mozilla/xpfe/components/winhooks/nsIWindowsHooks.idl
  3. */
  4. #ifndef __gen_nsIWindowsHooks_h__
  5. #define __gen_nsIWindowsHooks_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. class nsIDOMWindowInternal; /* forward declaration */
  14. class nsIDOMElement; /* forward declaration */
  15. /* starting interface: nsIWindowsHooksSettings */
  16. #define NS_IWINDOWSHOOKSSETTINGS_IID_STR "4ce9aa90-0a6a-11d4-8076-00600811a9c3"
  17. #define NS_IWINDOWSHOOKSSETTINGS_IID \
  18. {0x4ce9aa90, 0x0a6a, 0x11d4, \
  19. { 0x80, 0x76, 0x00, 0x60, 0x08, 0x11, 0xa9, 0xc3 }}
  20. class NS_NO_VTABLE nsIWindowsHooksSettings : public nsISupports {
  21. public:
  22. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWINDOWSHOOKSSETTINGS_IID)
  23. /* attribute boolean isHandlingHTTP; */
  24. NS_IMETHOD GetIsHandlingHTTP(PRBool *aIsHandlingHTTP) = 0;
  25. NS_IMETHOD SetIsHandlingHTTP(PRBool aIsHandlingHTTP) = 0;
  26. /* attribute boolean isHandlingHTTPS; */
  27. NS_IMETHOD GetIsHandlingHTTPS(PRBool *aIsHandlingHTTPS) = 0;
  28. NS_IMETHOD SetIsHandlingHTTPS(PRBool aIsHandlingHTTPS) = 0;
  29. /* attribute boolean isHandlingFTP; */
  30. NS_IMETHOD GetIsHandlingFTP(PRBool *aIsHandlingFTP) = 0;
  31. NS_IMETHOD SetIsHandlingFTP(PRBool aIsHandlingFTP) = 0;
  32. /* attribute boolean isHandlingCHROME; */
  33. NS_IMETHOD GetIsHandlingCHROME(PRBool *aIsHandlingCHROME) = 0;
  34. NS_IMETHOD SetIsHandlingCHROME(PRBool aIsHandlingCHROME) = 0;
  35. /* attribute boolean isHandlingGOPHER; */
  36. NS_IMETHOD GetIsHandlingGOPHER(PRBool *aIsHandlingGOPHER) = 0;
  37. NS_IMETHOD SetIsHandlingGOPHER(PRBool aIsHandlingGOPHER) = 0;
  38. /* attribute boolean isHandlingHTML; */
  39. NS_IMETHOD GetIsHandlingHTML(PRBool *aIsHandlingHTML) = 0;
  40. NS_IMETHOD SetIsHandlingHTML(PRBool aIsHandlingHTML) = 0;
  41. /* attribute boolean isHandlingJPEG; */
  42. NS_IMETHOD GetIsHandlingJPEG(PRBool *aIsHandlingJPEG) = 0;
  43. NS_IMETHOD SetIsHandlingJPEG(PRBool aIsHandlingJPEG) = 0;
  44. /* attribute boolean isHandlingGIF; */
  45. NS_IMETHOD GetIsHandlingGIF(PRBool *aIsHandlingGIF) = 0;
  46. NS_IMETHOD SetIsHandlingGIF(PRBool aIsHandlingGIF) = 0;
  47. /* attribute boolean isHandlingPNG; */
  48. NS_IMETHOD GetIsHandlingPNG(PRBool *aIsHandlingPNG) = 0;
  49. NS_IMETHOD SetIsHandlingPNG(PRBool aIsHandlingPNG) = 0;
  50. /* attribute boolean isHandlingMNG; */
  51. NS_IMETHOD GetIsHandlingMNG(PRBool *aIsHandlingMNG) = 0;
  52. NS_IMETHOD SetIsHandlingMNG(PRBool aIsHandlingMNG) = 0;
  53. /* attribute boolean isHandlingXBM; */
  54. NS_IMETHOD GetIsHandlingXBM(PRBool *aIsHandlingXBM) = 0;
  55. NS_IMETHOD SetIsHandlingXBM(PRBool aIsHandlingXBM) = 0;
  56. /* attribute boolean isHandlingBMP; */
  57. NS_IMETHOD GetIsHandlingBMP(PRBool *aIsHandlingBMP) = 0;
  58. NS_IMETHOD SetIsHandlingBMP(PRBool aIsHandlingBMP) = 0;
  59. /* attribute boolean isHandlingICO; */
  60. NS_IMETHOD GetIsHandlingICO(PRBool *aIsHandlingICO) = 0;
  61. NS_IMETHOD SetIsHandlingICO(PRBool aIsHandlingICO) = 0;
  62. /* attribute boolean isHandlingXML; */
  63. NS_IMETHOD GetIsHandlingXML(PRBool *aIsHandlingXML) = 0;
  64. NS_IMETHOD SetIsHandlingXML(PRBool aIsHandlingXML) = 0;
  65. /* attribute boolean isHandlingXHTML; */
  66. NS_IMETHOD GetIsHandlingXHTML(PRBool *aIsHandlingXHTML) = 0;
  67. NS_IMETHOD SetIsHandlingXHTML(PRBool aIsHandlingXHTML) = 0;
  68. /* attribute boolean isHandlingXUL; */
  69. NS_IMETHOD GetIsHandlingXUL(PRBool *aIsHandlingXUL) = 0;
  70. NS_IMETHOD SetIsHandlingXUL(PRBool aIsHandlingXUL) = 0;
  71. /* attribute boolean showDialog; */
  72. NS_IMETHOD GetShowDialog(PRBool *aShowDialog) = 0;
  73. NS_IMETHOD SetShowDialog(PRBool aShowDialog) = 0;
  74. /* readonly attribute boolean registryMatches; */
  75. NS_IMETHOD GetRegistryMatches(PRBool *aRegistryMatches) = 0;
  76. };
  77. /* Use this macro when declaring classes that implement this interface. */
  78. #define NS_DECL_NSIWINDOWSHOOKSSETTINGS \
  79. NS_IMETHOD GetIsHandlingHTTP(PRBool *aIsHandlingHTTP); \
  80. NS_IMETHOD SetIsHandlingHTTP(PRBool aIsHandlingHTTP); \
  81. NS_IMETHOD GetIsHandlingHTTPS(PRBool *aIsHandlingHTTPS); \
  82. NS_IMETHOD SetIsHandlingHTTPS(PRBool aIsHandlingHTTPS); \
  83. NS_IMETHOD GetIsHandlingFTP(PRBool *aIsHandlingFTP); \
  84. NS_IMETHOD SetIsHandlingFTP(PRBool aIsHandlingFTP); \
  85. NS_IMETHOD GetIsHandlingCHROME(PRBool *aIsHandlingCHROME); \
  86. NS_IMETHOD SetIsHandlingCHROME(PRBool aIsHandlingCHROME); \
  87. NS_IMETHOD GetIsHandlingGOPHER(PRBool *aIsHandlingGOPHER); \
  88. NS_IMETHOD SetIsHandlingGOPHER(PRBool aIsHandlingGOPHER); \
  89. NS_IMETHOD GetIsHandlingHTML(PRBool *aIsHandlingHTML); \
  90. NS_IMETHOD SetIsHandlingHTML(PRBool aIsHandlingHTML); \
  91. NS_IMETHOD GetIsHandlingJPEG(PRBool *aIsHandlingJPEG); \
  92. NS_IMETHOD SetIsHandlingJPEG(PRBool aIsHandlingJPEG); \
  93. NS_IMETHOD GetIsHandlingGIF(PRBool *aIsHandlingGIF); \
  94. NS_IMETHOD SetIsHandlingGIF(PRBool aIsHandlingGIF); \
  95. NS_IMETHOD GetIsHandlingPNG(PRBool *aIsHandlingPNG); \
  96. NS_IMETHOD SetIsHandlingPNG(PRBool aIsHandlingPNG); \
  97. NS_IMETHOD GetIsHandlingMNG(PRBool *aIsHandlingMNG); \
  98. NS_IMETHOD SetIsHandlingMNG(PRBool aIsHandlingMNG); \
  99. NS_IMETHOD GetIsHandlingXBM(PRBool *aIsHandlingXBM); \
  100. NS_IMETHOD SetIsHandlingXBM(PRBool aIsHandlingXBM); \
  101. NS_IMETHOD GetIsHandlingBMP(PRBool *aIsHandlingBMP); \
  102. NS_IMETHOD SetIsHandlingBMP(PRBool aIsHandlingBMP); \
  103. NS_IMETHOD GetIsHandlingICO(PRBool *aIsHandlingICO); \
  104. NS_IMETHOD SetIsHandlingICO(PRBool aIsHandlingICO); \
  105. NS_IMETHOD GetIsHandlingXML(PRBool *aIsHandlingXML); \
  106. NS_IMETHOD SetIsHandlingXML(PRBool aIsHandlingXML); \
  107. NS_IMETHOD GetIsHandlingXHTML(PRBool *aIsHandlingXHTML); \
  108. NS_IMETHOD SetIsHandlingXHTML(PRBool aIsHandlingXHTML); \
  109. NS_IMETHOD GetIsHandlingXUL(PRBool *aIsHandlingXUL); \
  110. NS_IMETHOD SetIsHandlingXUL(PRBool aIsHandlingXUL); \
  111. NS_IMETHOD GetShowDialog(PRBool *aShowDialog); \
  112. NS_IMETHOD SetShowDialog(PRBool aShowDialog); \
  113. NS_IMETHOD GetRegistryMatches(PRBool *aRegistryMatches);
  114. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  115. #define NS_FORWARD_NSIWINDOWSHOOKSSETTINGS(_to) \
  116. NS_IMETHOD GetIsHandlingHTTP(PRBool *aIsHandlingHTTP) { return _to GetIsHandlingHTTP(aIsHandlingHTTP); } \
  117. NS_IMETHOD SetIsHandlingHTTP(PRBool aIsHandlingHTTP) { return _to SetIsHandlingHTTP(aIsHandlingHTTP); } \
  118. NS_IMETHOD GetIsHandlingHTTPS(PRBool *aIsHandlingHTTPS) { return _to GetIsHandlingHTTPS(aIsHandlingHTTPS); } \
  119. NS_IMETHOD SetIsHandlingHTTPS(PRBool aIsHandlingHTTPS) { return _to SetIsHandlingHTTPS(aIsHandlingHTTPS); } \
  120. NS_IMETHOD GetIsHandlingFTP(PRBool *aIsHandlingFTP) { return _to GetIsHandlingFTP(aIsHandlingFTP); } \
  121. NS_IMETHOD SetIsHandlingFTP(PRBool aIsHandlingFTP) { return _to SetIsHandlingFTP(aIsHandlingFTP); } \
  122. NS_IMETHOD GetIsHandlingCHROME(PRBool *aIsHandlingCHROME) { return _to GetIsHandlingCHROME(aIsHandlingCHROME); } \
  123. NS_IMETHOD SetIsHandlingCHROME(PRBool aIsHandlingCHROME) { return _to SetIsHandlingCHROME(aIsHandlingCHROME); } \
  124. NS_IMETHOD GetIsHandlingGOPHER(PRBool *aIsHandlingGOPHER) { return _to GetIsHandlingGOPHER(aIsHandlingGOPHER); } \
  125. NS_IMETHOD SetIsHandlingGOPHER(PRBool aIsHandlingGOPHER) { return _to SetIsHandlingGOPHER(aIsHandlingGOPHER); } \
  126. NS_IMETHOD GetIsHandlingHTML(PRBool *aIsHandlingHTML) { return _to GetIsHandlingHTML(aIsHandlingHTML); } \
  127. NS_IMETHOD SetIsHandlingHTML(PRBool aIsHandlingHTML) { return _to SetIsHandlingHTML(aIsHandlingHTML); } \
  128. NS_IMETHOD GetIsHandlingJPEG(PRBool *aIsHandlingJPEG) { return _to GetIsHandlingJPEG(aIsHandlingJPEG); } \
  129. NS_IMETHOD SetIsHandlingJPEG(PRBool aIsHandlingJPEG) { return _to SetIsHandlingJPEG(aIsHandlingJPEG); } \
  130. NS_IMETHOD GetIsHandlingGIF(PRBool *aIsHandlingGIF) { return _to GetIsHandlingGIF(aIsHandlingGIF); } \
  131. NS_IMETHOD SetIsHandlingGIF(PRBool aIsHandlingGIF) { return _to SetIsHandlingGIF(aIsHandlingGIF); } \
  132. NS_IMETHOD GetIsHandlingPNG(PRBool *aIsHandlingPNG) { return _to GetIsHandlingPNG(aIsHandlingPNG); } \
  133. NS_IMETHOD SetIsHandlingPNG(PRBool aIsHandlingPNG) { return _to SetIsHandlingPNG(aIsHandlingPNG); } \
  134. NS_IMETHOD GetIsHandlingMNG(PRBool *aIsHandlingMNG) { return _to GetIsHandlingMNG(aIsHandlingMNG); } \
  135. NS_IMETHOD SetIsHandlingMNG(PRBool aIsHandlingMNG) { return _to SetIsHandlingMNG(aIsHandlingMNG); } \
  136. NS_IMETHOD GetIsHandlingXBM(PRBool *aIsHandlingXBM) { return _to GetIsHandlingXBM(aIsHandlingXBM); } \
  137. NS_IMETHOD SetIsHandlingXBM(PRBool aIsHandlingXBM) { return _to SetIsHandlingXBM(aIsHandlingXBM); } \
  138. NS_IMETHOD GetIsHandlingBMP(PRBool *aIsHandlingBMP) { return _to GetIsHandlingBMP(aIsHandlingBMP); } \
  139. NS_IMETHOD SetIsHandlingBMP(PRBool aIsHandlingBMP) { return _to SetIsHandlingBMP(aIsHandlingBMP); } \
  140. NS_IMETHOD GetIsHandlingICO(PRBool *aIsHandlingICO) { return _to GetIsHandlingICO(aIsHandlingICO); } \
  141. NS_IMETHOD SetIsHandlingICO(PRBool aIsHandlingICO) { return _to SetIsHandlingICO(aIsHandlingICO); } \
  142. NS_IMETHOD GetIsHandlingXML(PRBool *aIsHandlingXML) { return _to GetIsHandlingXML(aIsHandlingXML); } \
  143. NS_IMETHOD SetIsHandlingXML(PRBool aIsHandlingXML) { return _to SetIsHandlingXML(aIsHandlingXML); } \
  144. NS_IMETHOD GetIsHandlingXHTML(PRBool *aIsHandlingXHTML) { return _to GetIsHandlingXHTML(aIsHandlingXHTML); } \
  145. NS_IMETHOD SetIsHandlingXHTML(PRBool aIsHandlingXHTML) { return _to SetIsHandlingXHTML(aIsHandlingXHTML); } \
  146. NS_IMETHOD GetIsHandlingXUL(PRBool *aIsHandlingXUL) { return _to GetIsHandlingXUL(aIsHandlingXUL); } \
  147. NS_IMETHOD SetIsHandlingXUL(PRBool aIsHandlingXUL) { return _to SetIsHandlingXUL(aIsHandlingXUL); } \
  148. NS_IMETHOD GetShowDialog(PRBool *aShowDialog) { return _to GetShowDialog(aShowDialog); } \
  149. NS_IMETHOD SetShowDialog(PRBool aShowDialog) { return _to SetShowDialog(aShowDialog); } \
  150. NS_IMETHOD GetRegistryMatches(PRBool *aRegistryMatches) { return _to GetRegistryMatches(aRegistryMatches); }
  151. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  152. #define NS_FORWARD_SAFE_NSIWINDOWSHOOKSSETTINGS(_to) \
  153. NS_IMETHOD GetIsHandlingHTTP(PRBool *aIsHandlingHTTP) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingHTTP(aIsHandlingHTTP); } \
  154. NS_IMETHOD SetIsHandlingHTTP(PRBool aIsHandlingHTTP) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingHTTP(aIsHandlingHTTP); } \
  155. NS_IMETHOD GetIsHandlingHTTPS(PRBool *aIsHandlingHTTPS) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingHTTPS(aIsHandlingHTTPS); } \
  156. NS_IMETHOD SetIsHandlingHTTPS(PRBool aIsHandlingHTTPS) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingHTTPS(aIsHandlingHTTPS); } \
  157. NS_IMETHOD GetIsHandlingFTP(PRBool *aIsHandlingFTP) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingFTP(aIsHandlingFTP); } \
  158. NS_IMETHOD SetIsHandlingFTP(PRBool aIsHandlingFTP) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingFTP(aIsHandlingFTP); } \
  159. NS_IMETHOD GetIsHandlingCHROME(PRBool *aIsHandlingCHROME) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingCHROME(aIsHandlingCHROME); } \
  160. NS_IMETHOD SetIsHandlingCHROME(PRBool aIsHandlingCHROME) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingCHROME(aIsHandlingCHROME); } \
  161. NS_IMETHOD GetIsHandlingGOPHER(PRBool *aIsHandlingGOPHER) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingGOPHER(aIsHandlingGOPHER); } \
  162. NS_IMETHOD SetIsHandlingGOPHER(PRBool aIsHandlingGOPHER) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingGOPHER(aIsHandlingGOPHER); } \
  163. NS_IMETHOD GetIsHandlingHTML(PRBool *aIsHandlingHTML) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingHTML(aIsHandlingHTML); } \
  164. NS_IMETHOD SetIsHandlingHTML(PRBool aIsHandlingHTML) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingHTML(aIsHandlingHTML); } \
  165. NS_IMETHOD GetIsHandlingJPEG(PRBool *aIsHandlingJPEG) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingJPEG(aIsHandlingJPEG); } \
  166. NS_IMETHOD SetIsHandlingJPEG(PRBool aIsHandlingJPEG) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingJPEG(aIsHandlingJPEG); } \
  167. NS_IMETHOD GetIsHandlingGIF(PRBool *aIsHandlingGIF) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingGIF(aIsHandlingGIF); } \
  168. NS_IMETHOD SetIsHandlingGIF(PRBool aIsHandlingGIF) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingGIF(aIsHandlingGIF); } \
  169. NS_IMETHOD GetIsHandlingPNG(PRBool *aIsHandlingPNG) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingPNG(aIsHandlingPNG); } \
  170. NS_IMETHOD SetIsHandlingPNG(PRBool aIsHandlingPNG) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingPNG(aIsHandlingPNG); } \
  171. NS_IMETHOD GetIsHandlingMNG(PRBool *aIsHandlingMNG) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingMNG(aIsHandlingMNG); } \
  172. NS_IMETHOD SetIsHandlingMNG(PRBool aIsHandlingMNG) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingMNG(aIsHandlingMNG); } \
  173. NS_IMETHOD GetIsHandlingXBM(PRBool *aIsHandlingXBM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingXBM(aIsHandlingXBM); } \
  174. NS_IMETHOD SetIsHandlingXBM(PRBool aIsHandlingXBM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingXBM(aIsHandlingXBM); } \
  175. NS_IMETHOD GetIsHandlingBMP(PRBool *aIsHandlingBMP) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingBMP(aIsHandlingBMP); } \
  176. NS_IMETHOD SetIsHandlingBMP(PRBool aIsHandlingBMP) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingBMP(aIsHandlingBMP); } \
  177. NS_IMETHOD GetIsHandlingICO(PRBool *aIsHandlingICO) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingICO(aIsHandlingICO); } \
  178. NS_IMETHOD SetIsHandlingICO(PRBool aIsHandlingICO) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingICO(aIsHandlingICO); } \
  179. NS_IMETHOD GetIsHandlingXML(PRBool *aIsHandlingXML) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingXML(aIsHandlingXML); } \
  180. NS_IMETHOD SetIsHandlingXML(PRBool aIsHandlingXML) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingXML(aIsHandlingXML); } \
  181. NS_IMETHOD GetIsHandlingXHTML(PRBool *aIsHandlingXHTML) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingXHTML(aIsHandlingXHTML); } \
  182. NS_IMETHOD SetIsHandlingXHTML(PRBool aIsHandlingXHTML) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingXHTML(aIsHandlingXHTML); } \
  183. NS_IMETHOD GetIsHandlingXUL(PRBool *aIsHandlingXUL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingXUL(aIsHandlingXUL); } \
  184. NS_IMETHOD SetIsHandlingXUL(PRBool aIsHandlingXUL) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsHandlingXUL(aIsHandlingXUL); } \
  185. NS_IMETHOD GetShowDialog(PRBool *aShowDialog) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShowDialog(aShowDialog); } \
  186. NS_IMETHOD SetShowDialog(PRBool aShowDialog) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShowDialog(aShowDialog); } \
  187. NS_IMETHOD GetRegistryMatches(PRBool *aRegistryMatches) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRegistryMatches(aRegistryMatches); }
  188. #if 0
  189. /* Use the code below as a template for the implementation class for this interface. */
  190. /* Header file */
  191. class nsWindowsHooksSettings : public nsIWindowsHooksSettings
  192. {
  193. public:
  194. NS_DECL_ISUPPORTS
  195. NS_DECL_NSIWINDOWSHOOKSSETTINGS
  196. nsWindowsHooksSettings();
  197. private:
  198. ~nsWindowsHooksSettings();
  199. protected:
  200. /* additional members */
  201. };
  202. /* Implementation file */
  203. NS_IMPL_ISUPPORTS1(nsWindowsHooksSettings, nsIWindowsHooksSettings)
  204. nsWindowsHooksSettings::nsWindowsHooksSettings()
  205. {
  206. /* member initializers and constructor code */
  207. }
  208. nsWindowsHooksSettings::~nsWindowsHooksSettings()
  209. {
  210. /* destructor code */
  211. }
  212. /* attribute boolean isHandlingHTTP; */
  213. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingHTTP(PRBool *aIsHandlingHTTP)
  214. {
  215. return NS_ERROR_NOT_IMPLEMENTED;
  216. }
  217. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingHTTP(PRBool aIsHandlingHTTP)
  218. {
  219. return NS_ERROR_NOT_IMPLEMENTED;
  220. }
  221. /* attribute boolean isHandlingHTTPS; */
  222. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingHTTPS(PRBool *aIsHandlingHTTPS)
  223. {
  224. return NS_ERROR_NOT_IMPLEMENTED;
  225. }
  226. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingHTTPS(PRBool aIsHandlingHTTPS)
  227. {
  228. return NS_ERROR_NOT_IMPLEMENTED;
  229. }
  230. /* attribute boolean isHandlingFTP; */
  231. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingFTP(PRBool *aIsHandlingFTP)
  232. {
  233. return NS_ERROR_NOT_IMPLEMENTED;
  234. }
  235. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingFTP(PRBool aIsHandlingFTP)
  236. {
  237. return NS_ERROR_NOT_IMPLEMENTED;
  238. }
  239. /* attribute boolean isHandlingCHROME; */
  240. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingCHROME(PRBool *aIsHandlingCHROME)
  241. {
  242. return NS_ERROR_NOT_IMPLEMENTED;
  243. }
  244. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingCHROME(PRBool aIsHandlingCHROME)
  245. {
  246. return NS_ERROR_NOT_IMPLEMENTED;
  247. }
  248. /* attribute boolean isHandlingGOPHER; */
  249. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingGOPHER(PRBool *aIsHandlingGOPHER)
  250. {
  251. return NS_ERROR_NOT_IMPLEMENTED;
  252. }
  253. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingGOPHER(PRBool aIsHandlingGOPHER)
  254. {
  255. return NS_ERROR_NOT_IMPLEMENTED;
  256. }
  257. /* attribute boolean isHandlingHTML; */
  258. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingHTML(PRBool *aIsHandlingHTML)
  259. {
  260. return NS_ERROR_NOT_IMPLEMENTED;
  261. }
  262. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingHTML(PRBool aIsHandlingHTML)
  263. {
  264. return NS_ERROR_NOT_IMPLEMENTED;
  265. }
  266. /* attribute boolean isHandlingJPEG; */
  267. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingJPEG(PRBool *aIsHandlingJPEG)
  268. {
  269. return NS_ERROR_NOT_IMPLEMENTED;
  270. }
  271. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingJPEG(PRBool aIsHandlingJPEG)
  272. {
  273. return NS_ERROR_NOT_IMPLEMENTED;
  274. }
  275. /* attribute boolean isHandlingGIF; */
  276. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingGIF(PRBool *aIsHandlingGIF)
  277. {
  278. return NS_ERROR_NOT_IMPLEMENTED;
  279. }
  280. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingGIF(PRBool aIsHandlingGIF)
  281. {
  282. return NS_ERROR_NOT_IMPLEMENTED;
  283. }
  284. /* attribute boolean isHandlingPNG; */
  285. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingPNG(PRBool *aIsHandlingPNG)
  286. {
  287. return NS_ERROR_NOT_IMPLEMENTED;
  288. }
  289. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingPNG(PRBool aIsHandlingPNG)
  290. {
  291. return NS_ERROR_NOT_IMPLEMENTED;
  292. }
  293. /* attribute boolean isHandlingMNG; */
  294. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingMNG(PRBool *aIsHandlingMNG)
  295. {
  296. return NS_ERROR_NOT_IMPLEMENTED;
  297. }
  298. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingMNG(PRBool aIsHandlingMNG)
  299. {
  300. return NS_ERROR_NOT_IMPLEMENTED;
  301. }
  302. /* attribute boolean isHandlingXBM; */
  303. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingXBM(PRBool *aIsHandlingXBM)
  304. {
  305. return NS_ERROR_NOT_IMPLEMENTED;
  306. }
  307. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingXBM(PRBool aIsHandlingXBM)
  308. {
  309. return NS_ERROR_NOT_IMPLEMENTED;
  310. }
  311. /* attribute boolean isHandlingBMP; */
  312. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingBMP(PRBool *aIsHandlingBMP)
  313. {
  314. return NS_ERROR_NOT_IMPLEMENTED;
  315. }
  316. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingBMP(PRBool aIsHandlingBMP)
  317. {
  318. return NS_ERROR_NOT_IMPLEMENTED;
  319. }
  320. /* attribute boolean isHandlingICO; */
  321. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingICO(PRBool *aIsHandlingICO)
  322. {
  323. return NS_ERROR_NOT_IMPLEMENTED;
  324. }
  325. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingICO(PRBool aIsHandlingICO)
  326. {
  327. return NS_ERROR_NOT_IMPLEMENTED;
  328. }
  329. /* attribute boolean isHandlingXML; */
  330. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingXML(PRBool *aIsHandlingXML)
  331. {
  332. return NS_ERROR_NOT_IMPLEMENTED;
  333. }
  334. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingXML(PRBool aIsHandlingXML)
  335. {
  336. return NS_ERROR_NOT_IMPLEMENTED;
  337. }
  338. /* attribute boolean isHandlingXHTML; */
  339. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingXHTML(PRBool *aIsHandlingXHTML)
  340. {
  341. return NS_ERROR_NOT_IMPLEMENTED;
  342. }
  343. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingXHTML(PRBool aIsHandlingXHTML)
  344. {
  345. return NS_ERROR_NOT_IMPLEMENTED;
  346. }
  347. /* attribute boolean isHandlingXUL; */
  348. NS_IMETHODIMP nsWindowsHooksSettings::GetIsHandlingXUL(PRBool *aIsHandlingXUL)
  349. {
  350. return NS_ERROR_NOT_IMPLEMENTED;
  351. }
  352. NS_IMETHODIMP nsWindowsHooksSettings::SetIsHandlingXUL(PRBool aIsHandlingXUL)
  353. {
  354. return NS_ERROR_NOT_IMPLEMENTED;
  355. }
  356. /* attribute boolean showDialog; */
  357. NS_IMETHODIMP nsWindowsHooksSettings::GetShowDialog(PRBool *aShowDialog)
  358. {
  359. return NS_ERROR_NOT_IMPLEMENTED;
  360. }
  361. NS_IMETHODIMP nsWindowsHooksSettings::SetShowDialog(PRBool aShowDialog)
  362. {
  363. return NS_ERROR_NOT_IMPLEMENTED;
  364. }
  365. /* readonly attribute boolean registryMatches; */
  366. NS_IMETHODIMP nsWindowsHooksSettings::GetRegistryMatches(PRBool *aRegistryMatches)
  367. {
  368. return NS_ERROR_NOT_IMPLEMENTED;
  369. }
  370. /* End of implementation class template. */
  371. #endif
  372. /* starting interface: nsIWindowsHooks */
  373. #define NS_IWINDOWSHOOKS_IID_STR "19c9fbb0-06a3-11d4-8076-00600811a9c3"
  374. #define NS_IWINDOWSHOOKS_IID \
  375. {0x19c9fbb0, 0x06a3, 0x11d4, \
  376. { 0x80, 0x76, 0x00, 0x60, 0x08, 0x11, 0xa9, 0xc3 }}
  377. class NS_NO_VTABLE nsIWindowsHooks : public nsISupports {
  378. public:
  379. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWINDOWSHOOKS_IID)
  380. /* attribute nsIWindowsHooksSettings settings; */
  381. NS_IMETHOD GetSettings(nsIWindowsHooksSettings * *aSettings) = 0;
  382. NS_IMETHOD SetSettings(nsIWindowsHooksSettings * aSettings) = 0;
  383. /* boolean checkSettings (in nsIDOMWindowInternal aParent); */
  384. NS_IMETHOD CheckSettings(nsIDOMWindowInternal *aParent, PRBool *_retval) = 0;
  385. /**
  386. * Returns true if command is in the "(appname) QuickLaunch" value in the
  387. * HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run
  388. * key.
  389. */
  390. /* boolean isOptionEnabled (in string option); */
  391. NS_IMETHOD IsOptionEnabled(const char *option, PRBool *_retval) = 0;
  392. /**
  393. * Adds the option to the "(appname) QuickLaunch" value to the key mentioned above,
  394. * with data "(path\to\app.exe) option", if not done already.
  395. */
  396. /* void startupAddOption (in string option); */
  397. NS_IMETHOD StartupAddOption(const char *option) = 0;
  398. /**
  399. * Removes the commnand from the "(appname) QuickLaunch" value from
  400. * the key mentioned above, if not done already. And deletes the
  401. * "(appname) QuickLaunch" value entirely if there are no options left
  402. */
  403. /* void startupRemoveOption (in string option); */
  404. NS_IMETHOD StartupRemoveOption(const char *option) = 0;
  405. /**
  406. * Accepts an element, either an HTML img element or an element with
  407. * a background image, serializes the image to a bitmap file
  408. * in the windows directory, and sets it to be the desktop wallpaper.
  409. */
  410. /* void setImageAsWallpaper (in nsIDOMElement aImageElement, in boolean useBackground); */
  411. NS_IMETHOD SetImageAsWallpaper(nsIDOMElement *aImageElement, PRBool useBackground) = 0;
  412. };
  413. /* Use this macro when declaring classes that implement this interface. */
  414. #define NS_DECL_NSIWINDOWSHOOKS \
  415. NS_IMETHOD GetSettings(nsIWindowsHooksSettings * *aSettings); \
  416. NS_IMETHOD SetSettings(nsIWindowsHooksSettings * aSettings); \
  417. NS_IMETHOD CheckSettings(nsIDOMWindowInternal *aParent, PRBool *_retval); \
  418. NS_IMETHOD IsOptionEnabled(const char *option, PRBool *_retval); \
  419. NS_IMETHOD StartupAddOption(const char *option); \
  420. NS_IMETHOD StartupRemoveOption(const char *option); \
  421. NS_IMETHOD SetImageAsWallpaper(nsIDOMElement *aImageElement, PRBool useBackground);
  422. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  423. #define NS_FORWARD_NSIWINDOWSHOOKS(_to) \
  424. NS_IMETHOD GetSettings(nsIWindowsHooksSettings * *aSettings) { return _to GetSettings(aSettings); } \
  425. NS_IMETHOD SetSettings(nsIWindowsHooksSettings * aSettings) { return _to SetSettings(aSettings); } \
  426. NS_IMETHOD CheckSettings(nsIDOMWindowInternal *aParent, PRBool *_retval) { return _to CheckSettings(aParent, _retval); } \
  427. NS_IMETHOD IsOptionEnabled(const char *option, PRBool *_retval) { return _to IsOptionEnabled(option, _retval); } \
  428. NS_IMETHOD StartupAddOption(const char *option) { return _to StartupAddOption(option); } \
  429. NS_IMETHOD StartupRemoveOption(const char *option) { return _to StartupRemoveOption(option); } \
  430. NS_IMETHOD SetImageAsWallpaper(nsIDOMElement *aImageElement, PRBool useBackground) { return _to SetImageAsWallpaper(aImageElement, useBackground); }
  431. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  432. #define NS_FORWARD_SAFE_NSIWINDOWSHOOKS(_to) \
  433. NS_IMETHOD GetSettings(nsIWindowsHooksSettings * *aSettings) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSettings(aSettings); } \
  434. NS_IMETHOD SetSettings(nsIWindowsHooksSettings * aSettings) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSettings(aSettings); } \
  435. NS_IMETHOD CheckSettings(nsIDOMWindowInternal *aParent, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckSettings(aParent, _retval); } \
  436. NS_IMETHOD IsOptionEnabled(const char *option, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsOptionEnabled(option, _retval); } \
  437. NS_IMETHOD StartupAddOption(const char *option) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartupAddOption(option); } \
  438. NS_IMETHOD StartupRemoveOption(const char *option) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartupRemoveOption(option); } \
  439. NS_IMETHOD SetImageAsWallpaper(nsIDOMElement *aImageElement, PRBool useBackground) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetImageAsWallpaper(aImageElement, useBackground); }
  440. #if 0
  441. /* Use the code below as a template for the implementation class for this interface. */
  442. /* Header file */
  443. class nsWindowsHooks : public nsIWindowsHooks
  444. {
  445. public:
  446. NS_DECL_ISUPPORTS
  447. NS_DECL_NSIWINDOWSHOOKS
  448. nsWindowsHooks();
  449. private:
  450. ~nsWindowsHooks();
  451. protected:
  452. /* additional members */
  453. };
  454. /* Implementation file */
  455. NS_IMPL_ISUPPORTS1(nsWindowsHooks, nsIWindowsHooks)
  456. nsWindowsHooks::nsWindowsHooks()
  457. {
  458. /* member initializers and constructor code */
  459. }
  460. nsWindowsHooks::~nsWindowsHooks()
  461. {
  462. /* destructor code */
  463. }
  464. /* attribute nsIWindowsHooksSettings settings; */
  465. NS_IMETHODIMP nsWindowsHooks::GetSettings(nsIWindowsHooksSettings * *aSettings)
  466. {
  467. return NS_ERROR_NOT_IMPLEMENTED;
  468. }
  469. NS_IMETHODIMP nsWindowsHooks::SetSettings(nsIWindowsHooksSettings * aSettings)
  470. {
  471. return NS_ERROR_NOT_IMPLEMENTED;
  472. }
  473. /* boolean checkSettings (in nsIDOMWindowInternal aParent); */
  474. NS_IMETHODIMP nsWindowsHooks::CheckSettings(nsIDOMWindowInternal *aParent, PRBool *_retval)
  475. {
  476. return NS_ERROR_NOT_IMPLEMENTED;
  477. }
  478. /* boolean isOptionEnabled (in string option); */
  479. NS_IMETHODIMP nsWindowsHooks::IsOptionEnabled(const char *option, PRBool *_retval)
  480. {
  481. return NS_ERROR_NOT_IMPLEMENTED;
  482. }
  483. /* void startupAddOption (in string option); */
  484. NS_IMETHODIMP nsWindowsHooks::StartupAddOption(const char *option)
  485. {
  486. return NS_ERROR_NOT_IMPLEMENTED;
  487. }
  488. /* void startupRemoveOption (in string option); */
  489. NS_IMETHODIMP nsWindowsHooks::StartupRemoveOption(const char *option)
  490. {
  491. return NS_ERROR_NOT_IMPLEMENTED;
  492. }
  493. /* void setImageAsWallpaper (in nsIDOMElement aImageElement, in boolean useBackground); */
  494. NS_IMETHODIMP nsWindowsHooks::SetImageAsWallpaper(nsIDOMElement *aImageElement, PRBool useBackground)
  495. {
  496. return NS_ERROR_NOT_IMPLEMENTED;
  497. }
  498. /* End of implementation class template. */
  499. #endif
  500. #define NS_IWINDOWSHOOKS_CONTRACTID "@mozilla.org/winhooks;1"
  501. #define NS_IWINDOWSHOOKS_CLASSNAME "Mozilla Windows Integration Hooks"
  502. // The key that is used to write the quick launch appname in the windows registry
  503. #define NS_QUICKLAUNCH_RUN_KEY "Mozilla Quick Launch"
  504. #endif /* __gen_nsIWindowsHooks_h__ */