Back to index

lightning-sunbird  0.9+nobinonly
PromptService.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: Mozilla-sample-code 1.0
00004  *
00005  * Copyright (c) 2002 Netscape Communications Corporation and
00006  * other contributors
00007  *
00008  * Permission is hereby granted, free of charge, to any person obtaining a
00009  * copy of this Mozilla sample software and associated documentation files
00010  * (the "Software"), to deal in the Software without restriction, including
00011  * without limitation the rights to use, copy, modify, merge, publish,
00012  * distribute, sublicense, and/or sell copies of the Software, and to permit
00013  * persons to whom the Software is furnished to do so, subject to the
00014  * following conditions:
00015  *
00016  * The above copyright notice and this permission notice shall be included
00017  * in all copies or substantial portions of the Software.
00018  *
00019  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00020  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00021  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00022  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00023  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00024  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00025  * DEALINGS IN THE SOFTWARE.
00026  *
00027  * Contributor(s):
00028  *
00029  * ***** END LICENSE BLOCK ***** */
00030 
00031 #ifndef __PromptService_h
00032 #define __PromptService_h
00033 
00034 #include "nsError.h"
00035 
00036 // this component is for an MFC app; it's Windows. make sure this is defined.
00037 #ifndef XP_WIN
00038 #define XP_WIN
00039 #endif
00040 
00041 class nsIFactory;
00042 
00043 // factory creator, in hard and soft link formats
00044 extern "C" NS_EXPORT nsresult NS_NewPromptServiceFactory(nsIFactory** aFactory);
00045 typedef nsresult (__cdecl *MakeFactoryType)(nsIFactory **);
00046 #define kPromptServiceFactoryFuncName "NS_NewPromptServiceFactory"
00047 
00048 // initialization function, in hard and soft link formats
00049 extern "C" NS_EXPORT void InitPromptService(HINSTANCE instance);
00050 typedef nsresult (__cdecl *InitPromptServiceType)(HINSTANCE instance);
00051 #define kPromptServiceInitFuncName "InitPromptService"
00052 
00053 #endif