From 61e693903c01cb70930231f9a61c4daba1c27597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 17 Nov 2006 03:04:08 +0000 Subject: [PATCH] * invented a small protocol for use by FileTypes when it wants to use Icon-O-Matic to create or edit icons note to axeld: I'm messing with it right now, hope you're sleeping and not messing with it too! :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19308 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/libs/icon/IconEditorProtocol.h | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 headers/libs/icon/IconEditorProtocol.h diff --git a/headers/libs/icon/IconEditorProtocol.h b/headers/libs/icon/IconEditorProtocol.h new file mode 100644 index 0000000000..61b8352cdd --- /dev/null +++ b/headers/libs/icon/IconEditorProtocol.h @@ -0,0 +1,28 @@ +/* + * Copyright 2006, Haiku. All rights reserved. + * Distributed under the terms of the MIT License. + * + */ + +#ifndef ICON_EDITOR_PROTOCOL_H +#define ICON_EDITOR_PROTOCOL_H + +enum { + B_EDIT_ICON_DATA = 'EICN', + // the message needs to contain these fields: + // B_MESSENGER_TYPE "reply to" the messenger to which + // B_ICON_DATA_EDITED messages should + // be sent + // B_VECTOR_ICON_TYPE "icon data" OPTIONAL - the original vector icon data + // - if missing, a new icon is created + + B_ICON_DATA_EDITED = 'ICNE', + // the message needs to contain these fields: + // B_VECTOR_ICON_TYPE "icon data" the changed icon data, do with it + // as you please, the message is sent + // to the specified messenger and is + // the result of the user having + // decided to "save" the edited icon +}; + +#endif // ICON_EDITOR_PROTOCOL_H