* Fixed style and indentation issues; Stefano, you might want to check your

editor's tab settings before doing more of those.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32737 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-08-27 08:01:57 +00:00
parent 37ad10783e
commit 4a76f8198b
2 changed files with 60 additions and 58 deletions
+8 -7
View File
@@ -2,10 +2,10 @@
* Copyright 2009, Haiku Inc. All rights reserved. * Copyright 2009, Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT license. * Distributed under the terms of the MIT license.
*/ */
#ifndef _PROPERTY_INFO_H #ifndef _PROPERTY_INFO_H
#define _PROPERTY_INFO_H #define _PROPERTY_INFO_H
#include <BeBuild.h> #include <BeBuild.h>
#include <Flattenable.h> #include <Flattenable.h>
#include <SupportDefs.h> #include <SupportDefs.h>
@@ -57,7 +57,7 @@ public:
virtual ~BPropertyInfo(); virtual ~BPropertyInfo();
virtual int32 FindMatch(BMessage* msg, int32 index, virtual int32 FindMatch(BMessage* msg, int32 index,
BMessage* spec, int32 form, BMessage* specifier, int32 form,
const char* prop, void* data = NULL) const; const char* prop, void* data = NULL) const;
virtual bool IsFixedSize() const; virtual bool IsFixedSize() const;
@@ -65,7 +65,7 @@ public:
virtual ssize_t FlattenedSize() const; virtual ssize_t FlattenedSize() const;
virtual status_t Flatten(void* buffer, ssize_t size) const; virtual status_t Flatten(void* buffer, ssize_t size) const;
virtual bool AllowsTypeCode(type_code code) const; virtual bool AllowsTypeCode(type_code code) const;
virtual status_t Unflatten(type_code code, const void* buf, virtual status_t Unflatten(type_code code, const void* buffer,
ssize_t size); ssize_t size);
const property_info* Properties() const; const property_info* Properties() const;
@@ -76,8 +76,9 @@ public:
void PrintToStream() const; void PrintToStream() const;
protected: protected:
static bool FindCommand(uint32, int32, property_info*); static bool FindCommand(uint32 what, int32 index,
static bool FindSpecifier(uint32, property_info*); property_info* info);
static bool FindSpecifier(uint32 form, property_info* info);
private: private:
virtual void _ReservedPropertyInfo1(); virtual void _ReservedPropertyInfo1();
@@ -85,8 +86,8 @@ private:
virtual void _ReservedPropertyInfo3(); virtual void _ReservedPropertyInfo3();
virtual void _ReservedPropertyInfo4(); virtual void _ReservedPropertyInfo4();
BPropertyInfo(const BPropertyInfo&); BPropertyInfo(const BPropertyInfo& other);
BPropertyInfo& operator=(const BPropertyInfo &); BPropertyInfo& operator=(const BPropertyInfo& other);
void FreeMem(); void FreeMem();
property_info* fPropInfo; property_info* fPropInfo;
+8 -7
View File
@@ -2,10 +2,10 @@
* Copyright 2009, Haiku Inc. All rights reserved. * Copyright 2009, Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT license. * Distributed under the terms of the MIT license.
*/ */
#ifndef _PROPERTY_INFO_H #ifndef _PROPERTY_INFO_H
#define _PROPERTY_INFO_H #define _PROPERTY_INFO_H
#include <BeBuild.h> #include <BeBuild.h>
#include <Flattenable.h> #include <Flattenable.h>
#include <SupportDefs.h> #include <SupportDefs.h>
@@ -57,7 +57,7 @@ public:
virtual ~BPropertyInfo(); virtual ~BPropertyInfo();
virtual int32 FindMatch(BMessage* msg, int32 index, virtual int32 FindMatch(BMessage* msg, int32 index,
BMessage* spec, int32 form, BMessage* specifier, int32 form,
const char* prop, void* data = NULL) const; const char* prop, void* data = NULL) const;
virtual bool IsFixedSize() const; virtual bool IsFixedSize() const;
@@ -65,7 +65,7 @@ public:
virtual ssize_t FlattenedSize() const; virtual ssize_t FlattenedSize() const;
virtual status_t Flatten(void* buffer, ssize_t size) const; virtual status_t Flatten(void* buffer, ssize_t size) const;
virtual bool AllowsTypeCode(type_code code) const; virtual bool AllowsTypeCode(type_code code) const;
virtual status_t Unflatten(type_code code, const void* buf, virtual status_t Unflatten(type_code code, const void* buffer,
ssize_t size); ssize_t size);
const property_info* Properties() const; const property_info* Properties() const;
@@ -76,8 +76,9 @@ public:
void PrintToStream() const; void PrintToStream() const;
protected: protected:
static bool FindCommand(uint32, int32, property_info*); static bool FindCommand(uint32 what, int32 index,
static bool FindSpecifier(uint32, property_info*); property_info* info);
static bool FindSpecifier(uint32 form, property_info* info);
private: private:
virtual void _ReservedPropertyInfo1(); virtual void _ReservedPropertyInfo1();
@@ -85,8 +86,8 @@ private:
virtual void _ReservedPropertyInfo3(); virtual void _ReservedPropertyInfo3();
virtual void _ReservedPropertyInfo4(); virtual void _ReservedPropertyInfo4();
BPropertyInfo(const BPropertyInfo&); BPropertyInfo(const BPropertyInfo& other);
BPropertyInfo& operator=(const BPropertyInfo &); BPropertyInfo& operator=(const BPropertyInfo& other);
void FreeMem(); void FreeMem();
property_info* fPropInfo; property_info* fPropInfo;