From abc4a76816569a463027a9a62e13d20ed56ed91a Mon Sep 17 00:00:00 2001 From: DarkWyrm Date: Thu, 23 Jan 2003 00:37:53 +0000 Subject: [PATCH] Added app signature identifier for CursorManager class git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2533 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/server/ServerCursor.cpp | 5 +++++ src/servers/app/server/ServerCursor.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/servers/app/server/ServerCursor.cpp b/src/servers/app/server/ServerCursor.cpp index 830b851e61..404dd9e8ce 100644 --- a/src/servers/app/server/ServerCursor.cpp +++ b/src/servers/app/server/ServerCursor.cpp @@ -40,6 +40,7 @@ ServerCursor::ServerCursor(BRect r, color_space cspace, int32 flags, BPoint hots { _hotspot=hotspot; _hotspot.ConstrainTo(Bounds()); + _app_signature=NULL; _AllocateBuffer(); } @@ -100,6 +101,7 @@ ServerCursor::ServerCursor(int8 *data) _bytesperrow=0; _space=B_NO_COLOR_SPACE; } + _app_signature=NULL; } /*! @@ -111,6 +113,7 @@ ServerCursor::ServerCursor(const ServerCursor *cursor) { _AllocateBuffer(); _initialized=true; + _app_signature=NULL; if(cursor) { @@ -124,6 +127,8 @@ ServerCursor::ServerCursor(const ServerCursor *cursor) ServerCursor::~ServerCursor(void) { _FreeBuffer(); + if(_app_signature) + delete _app_signature; } /*! diff --git a/src/servers/app/server/ServerCursor.h b/src/servers/app/server/ServerCursor.h index 66f4f8f473..4f7ab84571 100644 --- a/src/servers/app/server/ServerCursor.h +++ b/src/servers/app/server/ServerCursor.h @@ -30,6 +30,8 @@ #include #include "ServerBitmap.h" +class ServerApp; + /*! \class ServerCursor ServerCursor.h \brief Class to handle all cursor capabilities for the system @@ -50,8 +52,11 @@ public: //! Returns the cursor's hot spot BPoint GetHotSpot(void); void SetHotSpot(BPoint pt); + const char *GetAppSignature(void) { return _app_signature; } private: + friend ServerApp; BPoint _hotspot; + char *_app_signature; }; #endif \ No newline at end of file