summaryrefslogtreecommitdiff
path: root/src/CheckIntegrityMan.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-02-08 15:53:45 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-02-08 15:53:45 +0000
commit1b7c1982896dba1d38e1fe84ba9660996607f5f9 (patch)
treed12047cb37ded1e18d4d5b97844412538beb19ff /src/CheckIntegrityMan.h
parentd82e183d346375ac8a58a298a58728be615f947e (diff)
2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed "using namespace std;" from all sources. Appended std:: prefix to c++ standard classes. Included string.h where mem* function are used.
Diffstat (limited to 'src/CheckIntegrityMan.h')
-rw-r--r--src/CheckIntegrityMan.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/CheckIntegrityMan.h b/src/CheckIntegrityMan.h
index ed8f3f7a..2d78a57d 100644
--- a/src/CheckIntegrityMan.h
+++ b/src/CheckIntegrityMan.h
@@ -36,28 +36,32 @@
#define _D_CHECK_INTEGRITY_MAN_H_
#include "common.h"
+#include "SharedHandle.h"
+#include <deque>
+
+namespace aria2 {
class CheckIntegrityEntry;
-typedef SharedHandle<CheckIntegrityEntry> CheckIntegrityEntryHandle;
-typedef deque<CheckIntegrityEntryHandle> CheckIntegrityEntries;
class CheckIntegrityMan {
private:
- CheckIntegrityEntries _checkIntegrityEntries;
+ std::deque<SharedHandle<CheckIntegrityEntry> > _checkIntegrityEntries;
public:
CheckIntegrityMan();
~CheckIntegrityMan();
- void addCheckIntegrityEntry(const CheckIntegrityEntryHandle& entry);
+ void addCheckIntegrityEntry(const SharedHandle<CheckIntegrityEntry>& entry);
- bool removeCheckIntegrityEntry(const CheckIntegrityEntryHandle& entry);
+ bool removeCheckIntegrityEntry(const SharedHandle<CheckIntegrityEntry>& entry);
- CheckIntegrityEntryHandle getFirstCheckIntegrityEntry() const;
+ SharedHandle<CheckIntegrityEntry> getFirstCheckIntegrityEntry() const;
int32_t countCheckIntegrityEntry() const;
};
typedef SharedHandle<CheckIntegrityMan> CheckIntegrityManHandle;
+} // namespace aria2
+
#endif // _D_CHECK_INTEGRITY_MAN_H_