refs #648, refs #640 review of MS

https://dev.vatsim-germany.org/issues/648#note-5
This commit is contained in:
Klaus Basan
2016-05-07 20:10:43 +02:00
parent 89346e4661
commit 4b11eb3f83
6 changed files with 4 additions and 14 deletions

View File

@@ -24,8 +24,6 @@ namespace BlackMisc
*/ */
class BLACKMISC_EXPORT IDatastoreObjectWithIntegerKey : public ITimestampBased class BLACKMISC_EXPORT IDatastoreObjectWithIntegerKey : public ITimestampBased
{ {
Q_INTERFACES(BlackMisc::ITimestampBased)
public: public:
//! Property index //! Property index
enum ColumnIndex enum ColumnIndex
@@ -97,8 +95,6 @@ namespace BlackMisc
*/ */
class BLACKMISC_EXPORT IDatastoreObjectWithStringKey : public ITimestampBased class BLACKMISC_EXPORT IDatastoreObjectWithStringKey : public ITimestampBased
{ {
Q_INTERFACES(BlackMisc::ITimestampBased)
public: public:
//! Property index //! Property index
enum ColumnIndex enum ColumnIndex

View File

@@ -17,7 +17,7 @@
namespace BlackMisc namespace BlackMisc
{ {
//! Entity with timestamp //! Entity with order attribute (can be manually ordered in views)
class BLACKMISC_EXPORT IOrderable class BLACKMISC_EXPORT IOrderable
{ {
public: public:
@@ -63,6 +63,4 @@ namespace BlackMisc
}; };
} // namespace } // namespace
Q_DECLARE_INTERFACE(BlackMisc::IOrderable, "org.swift-project.blackmisc.iorderable")
#endif // guard #endif // guard

View File

@@ -30,9 +30,6 @@ namespace BlackMisc
public BlackMisc::IDatastoreObjectWithStringKey, public BlackMisc::IDatastoreObjectWithStringKey,
public BlackMisc::IOrderable public BlackMisc::IOrderable
{ {
Q_INTERFACES(BlackMisc::IDatastoreObjectWithStringKey)
Q_INTERFACES(BlackMisc::IOrderable)
public: public:
//! Property indexes //! Property indexes
enum ColumnIndex enum ColumnIndex

View File

@@ -55,7 +55,8 @@ namespace BlackMisc
BLACK_METAMEMBER(distributorsFsx), BLACK_METAMEMBER(distributorsFsx),
BLACK_METAMEMBER(distributorsP3d), BLACK_METAMEMBER(distributorsP3d),
BLACK_METAMEMBER(distributorsFs9), BLACK_METAMEMBER(distributorsFs9),
BLACK_METAMEMBER(distributorsXPlane) BLACK_METAMEMBER(distributorsXPlane),
BLACK_METAMEMBER(lastUpdatedSimulator)
); );
}; };
} //namespace } //namespace

View File

@@ -117,6 +117,4 @@ namespace BlackMisc
}; };
} // namespace } // namespace
Q_DECLARE_INTERFACE(BlackMisc::ITimestampBased, "org.swift-project.blackmisc.itimestampbased")
#endif // guard #endif // guard

View File

@@ -492,7 +492,7 @@ namespace BlackMisc
emit valuesWantToCache({ { { element.m_key, value } }, timestamp, save }); emit valuesWantToCache({ { { element.m_key, value } }, timestamp, save });
} }
// All good info // All good info
status = CStatusMessage(this, CStatusMessage::SeverityInfo, "Set values in " + this->getKey(element)); status = CStatusMessage(this, CStatusMessage::SeverityInfo, "Set values in " + element.m_key);
} }
return status; return status;
} }