summaryrefslogtreecommitdiff
path: root/indra/newview/llestateinfomodel.h
diff options
context:
space:
mode:
authorDon Kjer <don@lindenlab.com>2012-08-17 03:56:38 +0000
committerDon Kjer <don@lindenlab.com>2012-08-17 03:56:38 +0000
commit64d9705ae21c42f4c7869a414e250c5de251b143 (patch)
treea8bd5946907cb65be0550a3f4529331fa94b933a /indra/newview/llestateinfomodel.h
parent7ac0d2b8a31174b3d8872ec8ed5ed64c3d0bc7ed (diff)
Expanding region flags to 64 bits. Adding region protocol flags
Diffstat (limited to 'indra/newview/llestateinfomodel.h')
-rw-r--r--indra/newview/llestateinfomodel.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/indra/newview/llestateinfomodel.h b/indra/newview/llestateinfomodel.h
index 56391eda91..538f2f7c75 100644
--- a/indra/newview/llestateinfomodel.h
+++ b/indra/newview/llestateinfomodel.h
@@ -85,19 +85,38 @@ protected:
private:
bool commitEstateInfoCaps();
void commitEstateInfoDataserver();
- U32 getFlags() const { return mFlags; }
- void setFlag(U32 flag, bool val);
+ inline bool getFlag(U64 flag) const;
+ inline void setFlag(U64 flag, bool val);
+ U64 getFlags() const { return mFlags; }
std::string getInfoDump();
// estate info
std::string mName; /// estate name
LLUUID mOwnerID; /// estate owner id
U32 mID; /// estate id
- U32 mFlags; /// estate flags
+ U64 mFlags; /// estate flags
F32 mSunHour; /// estate sun hour
update_signal_t mUpdateSignal; /// emitted when we receive update from sim
update_signal_t mCommitSignal; /// emitted when our update gets applied to sim
};
+inline bool LLEstateInfoModel::getFlag(U64 flag) const
+{
+ return ((mFlags & flag) != 0);
+}
+
+inline void LLEstateInfoModel::setFlag(U64 flag, bool val)
+{
+ if (val)
+ {
+ mFlags |= flag;
+ }
+ else
+ {
+ mFlags &= ~flag;
+ }
+}
+
+
#endif // LL_LLESTATEINFOMODEL_H