]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/dataobj.h
Use thread-safe functions where possible.
[wxWidgets.git] / include / wx / os2 / dataobj.h
index 148b637c77442f3015d0c7ba979bc93438d286b7..85b04e7a9ec54c795b2942b98ef59e598ee7340f 100644 (file)
@@ -1,21 +1,17 @@
 ///////////////////////////////////////////////////////////////////////////////
 // Name:        mac/dataobj.h
 // Purpose:     declaration of the wxDataObject
-// Author:      Stefan Csomor 
+// Author:      Stefan Csomor
 // Modified by:
 // Created:     10/21/99
 // RCS-ID:      $Id$
 // Copyright:   (c) 1998, 1999 Vadim Zeitlin, Robert Roebling
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_MAC_DATAOBJ_H_
 #define _WX_MAC_DATAOBJ_H_
 
-#ifdef __GNUG__
-    #pragma interface "dataobj.h"
-#endif
-
 // ----------------------------------------------------------------------------
 // wxDataObject is the same as wxDataObjectBase under wxGTK
 // ----------------------------------------------------------------------------
@@ -24,8 +20,20 @@ class wxDataObject : public wxDataObjectBase
 {
 public:
     wxDataObject();
+    virtual ~wxDataObject();
+
+    virtual bool IsSupportedFormat( const wxDataFormat& eFormat
+                                   ,Direction           eDir = Get
+                                  ) const
+    {
+        return(IsSupported( eFormat
+                           ,eDir
+                          ));
+    }
 
-    virtual bool IsSupportedFormat( const wxDataFormat& format, Direction dir = Get ) const;
+    PDRAGITEM GetInterface(void) const {return m_pDataObject;}
+private:
+    PDRAGITEM                       m_pDataObject;
 };
 
 #endif // _WX_MAC_DATAOBJ_H_