xref: /haiku/src/apps/icon-o-matic/generic/property/specific_properties/Int64Property.h (revision 3cb015b1ee509d69c643506e8ff573808c86dcfc)
1 /*
2  * Copyright 2006, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 
9 #ifndef INT64_PROPERTY_H
10 #define INT64_PROPERTY_H
11 
12 #include "Property.h"
13 
14 class Int64Property : public Property {
15  public:
16 								Int64Property(uint32 identifier,
17 											  int64 value = 0);
18 								Int64Property(const Int64Property& other);
19 	virtual						~Int64Property();
20 
21 	// TODO: BArchivable
22 	virtual	Property*			Clone() const;
23 
24 	virtual	type_code			Type() const
25 									{ return B_INT64_TYPE; }
26 
27 	virtual	bool				SetValue(const char* value);
28 	virtual	bool				SetValue(const Property* other);
29 	virtual	void				GetValue(BString& string);
30 
31 	virtual	bool				InterpolateTo(const Property* other,
32 											  float scale);
33 
34 	// IntProperty
35 			bool				SetValue(int64 value);
36 
37 	inline	int64				Value() const
38 									{ return fValue; }
39 
40  private:
41 			int64				fValue;
42 };
43 
44 #endif // PROPERTY_H
45