diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-08 15:53:45 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-08 15:53:45 +0000 |
| commit | 1b7c1982896dba1d38e1fe84ba9660996607f5f9 (patch) | |
| tree | d12047cb37ded1e18d4d5b97844412538beb19ff /src/StreamFileAllocationEntry.h | |
| parent | d82e183d346375ac8a58a298a58728be615f947e (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/StreamFileAllocationEntry.h')
| -rw-r--r-- | src/StreamFileAllocationEntry.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/StreamFileAllocationEntry.h b/src/StreamFileAllocationEntry.h index 96afc1e1..158c135b 100644 --- a/src/StreamFileAllocationEntry.h +++ b/src/StreamFileAllocationEntry.h @@ -38,24 +38,27 @@ #include "FileAllocationEntry.h" #include "TimeA2.h" +namespace aria2 { + class Request; -typedef SharedHandle<Request> RequestHandle; class StreamFileAllocationEntry : public FileAllocationEntry { private: - RequestHandle _currentRequest; + SharedHandle<Request> _currentRequest; Time _timer; public: - StreamFileAllocationEntry(const RequestHandle& currentRequest, + StreamFileAllocationEntry(const SharedHandle<Request>& currentRequest, RequestGroup* requestGroup, Command* nextCommand = 0); virtual ~StreamFileAllocationEntry(); - virtual Commands prepareForNextAction(DownloadEngine* e); + virtual std::deque<Command*> prepareForNextAction(DownloadEngine* e); }; typedef SharedHandle<StreamFileAllocationEntry> StreamFileAllocationEntryHandle; -typedef deque<StreamFileAllocationEntryHandle> StreamFileAllocationEntries; +typedef std::deque<StreamFileAllocationEntryHandle> StreamFileAllocationEntries; + +} // namespace aria2 #endif // _D_STREAM_FILE_ALLOCATION_ENTRY_H_ |
