b137ab3eb3
features: * Some cosmetic adjustments of the API, like using references instead of pointers, argument order, method names, etc. * Added convenience template methods for archiving and unarchiving to BArchiver and BUnarchiver. * BUnarchiver (respectively the private BUnarchiveManager) explicitly deals with object ownership, now. This is necessary since an error while unarchiving could leave an already unarchived object without owning object, which would result in it being leaked. The BUnarchiver::{Get,Find}Object() methods do now have an optional parameter to specify whether object ownership shall be transferred. * Fixed incorrect header guard in headers/private/binary_compatibility/Global.h. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37538 a95241bf-73f2-0310-859d-f6bbb57e9c96
33 lines
830 B
C
33 lines
830 B
C
/*
|
|
* Copyright 2008, Oliver Tappe, zooey@hirschkaefer.de.
|
|
* Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _BINARY_COMPATIBILITY_GLOBAL_H_
|
|
#define _BINARY_COMPATIBILITY_GLOBAL_H_
|
|
|
|
|
|
// method codes
|
|
enum {
|
|
// app kit
|
|
|
|
// interface kit
|
|
PERFORM_CODE_MIN_SIZE = 1000,
|
|
PERFORM_CODE_MAX_SIZE = 1001,
|
|
PERFORM_CODE_PREFERRED_SIZE = 1002,
|
|
PERFORM_CODE_LAYOUT_ALIGNMENT = 1003,
|
|
PERFORM_CODE_HAS_HEIGHT_FOR_WIDTH = 1004,
|
|
PERFORM_CODE_GET_HEIGHT_FOR_WIDTH = 1005,
|
|
PERFORM_CODE_SET_LAYOUT = 1006,
|
|
PERFORM_CODE_INVALIDATE_LAYOUT = 1007,
|
|
PERFORM_CODE_DO_LAYOUT = 1008,
|
|
PERFORM_CODE_GET_TOOL_TIP_AT = 1009,
|
|
|
|
// support kit
|
|
PERFORM_CODE_ALL_ARCHIVED = 1010,
|
|
PERFORM_CODE_ALL_UNARCHIVED = 1011
|
|
};
|
|
|
|
|
|
#endif // _BINARY_COMPATIBILITY__GLOBAL_H_
|