mirror of https://github.com/aria2/aria2
Renamed OptionHandler::setGlobalChangeOption() as setChangeGlobalOption().
parent
5a29813d24
commit
6bc6825cec
|
@ -168,12 +168,12 @@ public:
|
||||||
changeOption_ = f;
|
changeOption_ = f;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool getGlobalChangeOption() const
|
virtual bool getChangeGlobalOption() const
|
||||||
{
|
{
|
||||||
return globalChangeOption_;
|
return globalChangeOption_;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void setGlobalChangeOption(bool f)
|
virtual void setChangeGlobalOption(bool f)
|
||||||
{
|
{
|
||||||
globalChangeOption_ = f;
|
globalChangeOption_ = f;
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,8 +109,8 @@ public:
|
||||||
virtual void setInitialOption(bool f) = 0;
|
virtual void setInitialOption(bool f) = 0;
|
||||||
virtual bool getChangeOption() const = 0;
|
virtual bool getChangeOption() const = 0;
|
||||||
virtual void setChangeOption(bool f) = 0;
|
virtual void setChangeOption(bool f) = 0;
|
||||||
virtual bool getGlobalChangeOption() const = 0;
|
virtual bool getChangeGlobalOption() const = 0;
|
||||||
virtual void setGlobalChangeOption(bool f) = 0;
|
virtual void setChangeGlobalOption(bool f) = 0;
|
||||||
virtual bool getCumulative() const = 0;
|
virtual bool getCumulative() const = 0;
|
||||||
virtual void setCumulative(bool f) = 0;
|
virtual void setCumulative(bool f) = 0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -373,7 +373,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
|
||||||
OptionHandler::REQ_ARG,
|
OptionHandler::REQ_ARG,
|
||||||
'l'));
|
'l'));
|
||||||
op->addTag(TAG_BASIC);
|
op->addTag(TAG_BASIC);
|
||||||
op->setGlobalChangeOption(true);
|
op->setChangeGlobalOption(true);
|
||||||
handlers.push_back(op);
|
handlers.push_back(op);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -385,7 +385,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
|
||||||
std::vector<std::string>
|
std::vector<std::string>
|
||||||
(vbegin(params), vend(params))));
|
(vbegin(params), vend(params))));
|
||||||
op->addTag(TAG_ADVANCED);
|
op->addTag(TAG_ADVANCED);
|
||||||
op->setGlobalChangeOption(true);
|
op->setChangeGlobalOption(true);
|
||||||
handlers.push_back(op);
|
handlers.push_back(op);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -396,7 +396,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
|
||||||
1, -1,
|
1, -1,
|
||||||
'j'));
|
'j'));
|
||||||
op->addTag(TAG_BASIC);
|
op->addTag(TAG_BASIC);
|
||||||
op->setGlobalChangeOption(true);
|
op->setChangeGlobalOption(true);
|
||||||
handlers.push_back(op);
|
handlers.push_back(op);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -443,7 +443,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
|
||||||
op->addTag(TAG_BITTORRENT);
|
op->addTag(TAG_BITTORRENT);
|
||||||
op->addTag(TAG_FTP);
|
op->addTag(TAG_FTP);
|
||||||
op->addTag(TAG_HTTP);
|
op->addTag(TAG_HTTP);
|
||||||
op->setGlobalChangeOption(true);
|
op->setChangeGlobalOption(true);
|
||||||
handlers.push_back(op);
|
handlers.push_back(op);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -1724,7 +1724,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
|
||||||
0));
|
0));
|
||||||
op->addTag(TAG_BASIC);
|
op->addTag(TAG_BASIC);
|
||||||
op->addTag(TAG_BITTORRENT);
|
op->addTag(TAG_BITTORRENT);
|
||||||
op->setGlobalChangeOption(true);
|
op->setChangeGlobalOption(true);
|
||||||
handlers.push_back(op);
|
handlers.push_back(op);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
@ -820,14 +820,14 @@ void DeprecatedOptionHandler::setChangeOption(bool f)
|
||||||
depOptHandler_->setChangeOption(f);
|
depOptHandler_->setChangeOption(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DeprecatedOptionHandler::getGlobalChangeOption() const
|
bool DeprecatedOptionHandler::getChangeGlobalOption() const
|
||||||
{
|
{
|
||||||
return depOptHandler_->getGlobalChangeOption();
|
return depOptHandler_->getChangeGlobalOption();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeprecatedOptionHandler::setGlobalChangeOption(bool f)
|
void DeprecatedOptionHandler::setChangeGlobalOption(bool f)
|
||||||
{
|
{
|
||||||
depOptHandler_->setGlobalChangeOption(f);
|
depOptHandler_->setChangeGlobalOption(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DeprecatedOptionHandler::getCumulative() const
|
bool DeprecatedOptionHandler::getCumulative() const
|
||||||
|
|
|
@ -316,8 +316,8 @@ public:
|
||||||
virtual void setInitialOption(bool f);
|
virtual void setInitialOption(bool f);
|
||||||
virtual bool getChangeOption() const;
|
virtual bool getChangeOption() const;
|
||||||
virtual void setChangeOption(bool f);
|
virtual void setChangeOption(bool f);
|
||||||
virtual bool getGlobalChangeOption() const;
|
virtual bool getChangeGlobalOption() const;
|
||||||
virtual void setGlobalChangeOption(bool f);
|
virtual void setChangeGlobalOption(bool f);
|
||||||
virtual bool getCumulative() const;
|
virtual bool getCumulative() const;
|
||||||
virtual void setCumulative(bool f);
|
virtual void setCumulative(bool f);
|
||||||
};
|
};
|
||||||
|
|
|
@ -142,7 +142,7 @@ void RpcMethod::gatherChangeableGlobalOption
|
||||||
{
|
{
|
||||||
if(optionsDict) {
|
if(optionsDict) {
|
||||||
gatherOption(optionsDict->begin(), optionsDict->end(),
|
gatherOption(optionsDict->begin(), optionsDict->end(),
|
||||||
mem_fun_sh(&OptionHandler::getGlobalChangeOption),
|
mem_fun_sh(&OptionHandler::getChangeGlobalOption),
|
||||||
option, optionParser_);
|
option, optionParser_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue