summaryrefslogtreecommitdiff
path: root/src/Command.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Command.cc')
-rw-r--r--src/Command.cc42
1 files changed, 14 insertions, 28 deletions
diff --git a/src/Command.cc b/src/Command.cc
index b9e236b7..d24471cd 100644
--- a/src/Command.cc
+++ b/src/Command.cc
@@ -38,17 +38,18 @@
namespace aria2 {
Command::Command(cuid_t cuid)
- : cuid_(cuid),
- status_(STATUS_INACTIVE),
- readEvent_(false),
- writeEvent_(false),
- errorEvent_(false),
- hupEvent_(false)
-{}
+ : cuid_(cuid),
+ status_(STATUS_INACTIVE),
+ readEvent_(false),
+ writeEvent_(false),
+ errorEvent_(false),
+ hupEvent_(false)
+{
+}
void Command::transitStatus()
{
- switch(status_) {
+ switch (status_) {
case STATUS_REALTIME:
break;
default:
@@ -56,30 +57,15 @@ void Command::transitStatus()
}
}
-void Command::setStatus(STATUS status)
-{
- status_ = status;
-}
+void Command::setStatus(STATUS status) { status_ = status; }
-void Command::readEventReceived()
-{
- readEvent_ = true;
-}
+void Command::readEventReceived() { readEvent_ = true; }
-void Command::writeEventReceived()
-{
- writeEvent_ = true;
-}
+void Command::writeEventReceived() { writeEvent_ = true; }
-void Command::errorEventReceived()
-{
- errorEvent_ = true;
-}
+void Command::errorEventReceived() { errorEvent_ = true; }
-void Command::hupEventReceived()
-{
- hupEvent_ = true;
-}
+void Command::hupEventReceived() { hupEvent_ = true; }
void Command::clearIOEvents()
{