1 /* 2 * Copyright 2006, Haiku. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 */ 6 7 #ifndef ICON_EDITOR_PROTOCOL_H 8 #define ICON_EDITOR_PROTOCOL_H 9 10 enum { 11 B_EDIT_ICON_DATA = 'EICN', 12 // the message needs to contain these fields: 13 // B_MESSENGER_TYPE "reply to" the messenger to which 14 // B_ICON_DATA_EDITED messages should 15 // be sent 16 // B_VECTOR_ICON_TYPE "icon data" OPTIONAL - the original vector icon data 17 // - if missing, a new icon is created 18 19 B_ICON_DATA_EDITED = 'ICNE', 20 // the message needs to contain these fields: 21 // B_VECTOR_ICON_TYPE "icon data" the changed icon data, do with it 22 // as you please, the message is sent 23 // to the specified messenger and is 24 // the result of the user having 25 // decided to "save" the edited icon 26 B_CANCEL_EDITING_ICON_DATA = 'CEIC', 27 // the application requesting an icon to be edited is no longer interested 28 // TODO: think of a way to tell the original application if the icon was 29 // still changed, and if it wants to do anything with the changed icon 30 }; 31 32 #endif // ICON_EDITOR_PROTOCOL_H 33