Small checkpoint
diff --git a/src/action-log.h b/src/action-log.h
index 27d0869..4123713 100644
--- a/src/action-log.h
+++ b/src/action-log.h
@@ -41,6 +41,9 @@
SyncLogPtr syncLog,
const std::string &sharedFolder);
+ //////////////////////////
+ // Local operations //
+ //////////////////////////
void
AddLocalActionUpdate (const std::string &filename,
const Hash &hash,
@@ -57,6 +60,25 @@
bool
KnownFileState(const std::string &filename, const Hash &hash);
+ //////////////////////////
+ // Remote operations //
+ //////////////////////////
+
+ void
+ AddRemoteAction (const Ccnx::Name &deviceName, sqlite3_int64 seqno, Ccnx::PcoPtr actionPco);
+
+ /**
+ * @brief Add remote action using just action's parsed content object
+ *
+ * This function extracts device name and sequence number from the content object's and calls the overloaded method
+ */
+ void
+ AddRemoteAction (Ccnx::PcoPtr actionPco);
+
+ ///////////////////////////
+ // General operations //
+ ///////////////////////////
+
Ccnx::PcoPtr
LookupActionPco (const Ccnx::Name &deviceName, sqlite3_int64 seqno);
@@ -69,6 +91,8 @@
ActionItemPtr
LookupAction (const Ccnx::Name &actionName);
+
+
public:
// for test purposes
sqlite3_int64
@@ -88,4 +112,9 @@
std::string m_sharedFolderName;
};
+namespace Error {
+struct ActionLog : virtual boost::exception, virtual std::exception { };
+}
+
+
#endif // ACTION_LOG_H