summaryrefslogtreecommitdiff
path: root/bin/bbackupquery/BackupQueries.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-05-28 15:25:59 +0000
committerChris Wilson <chris+github@qwirx.com>2008-05-28 15:25:59 +0000
commitdbd007d651c59f8037c536058752b52247409692 (patch)
tree08976762b00d52ea6bbcbd879146314da2de03ae /bin/bbackupquery/BackupQueries.h
parent1aaa7a42e7bd65902a07f29881b68acb45255d24 (diff)
Use symbolic names instead of #defines for return codes.
Diffstat (limited to 'bin/bbackupquery/BackupQueries.h')
-rw-r--r--bin/bbackupquery/BackupQueries.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/bin/bbackupquery/BackupQueries.h b/bin/bbackupquery/BackupQueries.h
index b2ef8cc2..0e7343a2 100644
--- a/bin/bbackupquery/BackupQueries.h
+++ b/bin/bbackupquery/BackupQueries.h
@@ -79,9 +79,28 @@ private:
const ExcludeList *mpExcludeDirs;
box_time_t mLatestFileUploadTime;
};
- void CompareLocation(const std::string &rLocation, CompareParams &rParams);
- void Compare(const std::string &rStoreDir, const std::string &rLocalDir, CompareParams &rParams);
- void Compare(int64_t DirID, const std::string &rStoreDir, const std::string &rLocalDir, CompareParams &rParams);
+ void CompareLocation(const std::string &rLocation,
+ CompareParams &rParams);
+ void Compare(const std::string &rStoreDir,
+ const std::string &rLocalDir, CompareParams &rParams);
+ void Compare(int64_t DirID, const std::string &rStoreDir,
+ const std::string &rLocalDir, CompareParams &rParams);
+
+public:
+
+ class ReturnCode
+ {
+ public:
+ enum {
+ Command_OK = 0,
+ Compare_Same = 1,
+ Compare_Different,
+ Compare_Error,
+ Command_Error,
+ } Type;
+ };
+
+private:
// Utility functions
int64_t FindDirectoryObjectID(const std::string &rDirName, bool AllowOldVersion = false,