Back to index

lightning-sunbird  0.9+nobinonly
nsIDragSessionOS2.h
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
00005  * Version 1.1 (the "License"); you may not use this file except in
00006  * compliance with 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 the Mozilla OS/2 libraries.
00015  *
00016  * The Initial Developer of the Original Code is 
00017  * Richard L. Walsh <dragtext@e-vertise.com>
00018  * Portions created by the Initial Developer are Copyright (C) 2003
00019  * the Initial Developer. All Rights Reserved.
00020  *
00021  * Contributor(s):
00022  *
00023  * Alternatively, the contents of this file may be used under the terms of
00024  * either the GNU General Public License Version 2 or later (the "GPL"), or 
00025  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00026  * in which case the provisions of the GPL or the LGPL are applicable instead
00027  * of those above. If you wish to allow use of your version of this file only
00028  * under the terms of either the GPL or the LGPL, and not to allow others to
00029  * use your version of this file under the terms of the MPL, indicate your
00030  * decision by deleting the provisions above and replace them with the notice
00031  * and other provisions required by the GPL or the LGPL. If you do not delete
00032  * the provisions above, a recipient may use your version of this file under
00033  * the terms of any one of the MPL, the GPL or the LGPL.
00034  *
00035  * ***** END LICENSE BLOCK ***** */
00036 
00052 #ifndef nsIDragSessionOS2_h__
00053 #define nsIDragSessionOS2_h__
00054 
00055 #include "nsISupports.h"
00056 
00057 #define INCL_PM
00058 #include <os2.h>
00059 
00060 #define NS_IDRAGSESSIONOS2_IID_STR "bc4258b8-33ce-4624-adcb-4b62bb5164c0"
00061 #define NS_IDRAGSESSIONOS2_IID \
00062   { 0xbc4258b8, 0x33ce, 0x4624, { 0xad, 0xcb, 0x4b, 0x62, 0xbb, 0x51, 0x64, 0xc0 } };
00063 
00064 class nsIDragSessionOS2 : public nsISupports
00065 {
00066 public:
00067   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDRAGSESSIONOS2_IID)
00068 
00069   
00072   enum { DND_NONE       = 0 };                                     
00073   enum { DND_NATIVEDRAG = 1 };                                     
00074   enum { DND_MOZDRAG    = 2 };                                     
00075   enum { DND_INDROP     = 4 };                                     
00076   enum { DND_DRAGSTATUS = DND_NATIVEDRAG | DND_MOZDRAG | DND_INDROP };
00077 
00079   enum { DND_DISPATCHENTEREVENT = 16 };
00080   enum { DND_DISPATCHEVENT      = 32 };
00081   enum { DND_GETDRAGOVERRESULT  = 64 };
00082   enum { DND_EXITSESSION        = 128 };
00083 
00084   NS_IMETHOD DragOverMsg(PDRAGINFO pdinfo, MRESULT &mr, PRUint32* dragFlags) = 0;
00085   NS_IMETHOD GetDragoverResult(MRESULT& mr) = 0;
00086   NS_IMETHOD DragLeaveMsg(PDRAGINFO pdinfo, PRUint32* dragFlags) = 0;
00087   NS_IMETHOD DropHelpMsg(PDRAGINFO pdinfo, PRUint32* dragFlags) = 0;
00088   NS_IMETHOD ExitSession(PRUint32* dragFlags) = 0;
00089   NS_IMETHOD DropMsg(PDRAGINFO pdinfo, HWND hwnd, PRUint32* dragFlags) = 0;
00090   NS_IMETHOD RenderCompleteMsg(PDRAGTRANSFER pdxfer, USHORT usResult, PRUint32* dragFlags) = 0;
00091 
00092 protected:
00093   NS_IMETHOD NativeDragEnter(PDRAGINFO pdinfo) = 0;
00094   NS_IMETHOD NativeDrop(PDRAGINFO pdinfo, HWND hwnd, PRBool* rendering) = 0;
00095   NS_IMETHOD NativeRenderComplete(PDRAGTRANSFER pdxfer, USHORT usResult) = 0;
00096   NS_IMETHOD NativeDataToTransferable( PCSZ pszText, PCSZ pszTitle, PRBool isUrl) = 0;
00097 };
00098 
00099 #endif  // nsIDragSessionOS2_h__
00100