home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / ReadAttachDrag.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.8 KB  |  64 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /* 
  19.    ReadAttachDrag.h -- class definitions for message attachment drag source
  20.    Created: Alastair Gourlay(SGI) c/o Dora Hsu<dora@netscape.com>, 26 Nov 1996
  21.  */
  22.  
  23. #ifndef _READ_ATTACH_DRAG_H
  24. #define _READ_ATTACH_DRAG_H
  25.  
  26. class XFE_ReadAttachPanel;
  27. class XFE_ReadAttachDrag;
  28.  
  29. #undef Bool
  30. #include "mozilla.h"
  31. #include "xfe.h"
  32. #include "net.h"
  33. #include "DragDrop.h"
  34. #include "ReadAttachPanel.h"
  35.  
  36.  
  37. class XFE_ReadAttachDrag : public XFE_DragNetscape
  38. {
  39. public:
  40.     XFE_ReadAttachDrag(Widget,XFE_ReadAttachPanel*);
  41.     ~XFE_ReadAttachDrag();
  42.     void lockFrame();
  43.     void unlockFrame();
  44. protected:
  45.     XFE_ReadAttachPanel *_attachPanel;
  46.     char *_dragDataURL;
  47.     char *_dragDataName;
  48.     char *_tmpDirectory;
  49.     char *_tmpFileName;
  50.  
  51.     // utilities
  52.     void cleanupDataFiles();
  53.     
  54.     // methods for derived classes to override
  55.     virtual int dragStart(int,int);
  56.     virtual void targets();
  57.     virtual void operations();
  58.     virtual char *getTargetData(Atom);
  59.     virtual void dragComplete();
  60. private:
  61. };
  62.  
  63. #endif // _READ_ATTACH_DRAG_H
  64.