Replace boost::scoped_ptr with std::unique_ptr.
[cumulus.git] / remote.h
index a2801da..10a0a96 100644 (file)
--- a/remote.h
+++ b/remote.h
@@ -1,7 +1,6 @@
-/* Cumulus: Smart Filesystem Backup to Dumb Servers
- *
- * Copyright (C) 2008  The Regents of the University of California
- * Written by Michael Vrable <mvrable@cs.ucsd.edu>
+/* Cumulus: Efficient Filesystem Backup to the Cloud
+ * Copyright (C) 2008 The Cumulus Developers
+ * See the AUTHORS file for a list of contributors.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -39,10 +38,8 @@ class RemoteStore {
 public:
     static const size_t MAX_QUEUE_SIZE = 4;
 
-    RemoteStore(const std::string &stagedir);
+    RemoteStore(const std::string &stagedir, const std::string &script = "");
     ~RemoteStore();
-    void set_script(const std::string &script)
-        { backup_script = script; }
     RemoteFile *alloc_file(const std::string &name, const std::string &type);
     void enqueue(RemoteFile *file);
     void sync();
@@ -74,6 +71,7 @@ public:
     int get_fd() const { return fd; }
 
     const std::string &get_local_path() const { return local_path; }
+    const std::string &get_remote_path() const { return remote_path; }
 
     /* Called when the file is finished--request that it be sent to the remote
      * server.  This will delete the RemoteFile object. */