Browse Source

IRC Client configs are no longer const

release/0.19
Jessica James 8 years ago
parent
commit
dde6ebc6d4
  1. 10
      Jupiter/IRC_Client.cpp
  2. 6
      Jupiter/IRC_Client.h

10
Jupiter/IRC_Client.cpp

@ -56,8 +56,8 @@ struct JUPITER_API Jupiter::IRC::Client::Data
Jupiter::StringS saslPass;
int connectionStatus;
Jupiter::StringS primary_section_name;
const Jupiter::Config *primary_section;
const Jupiter::Config *secondary_section;
Jupiter::Config *primary_section;
Jupiter::Config *secondary_section;
Jupiter::CStringS logFileName;
Jupiter::StringS last_line;
unsigned short serverPort;
@ -131,7 +131,7 @@ struct Jupiter::IRC::Client::Channel::Data
bool isAddingNames;
};
Jupiter::IRC::Client::Client(const Jupiter::Config *in_primary_section, const Jupiter::Config *in_secondary_section)
Jupiter::IRC::Client::Client(Jupiter::Config *in_primary_section, Jupiter::Config *in_secondary_section)
{
Jupiter::IRC::Client::data_ = new Jupiter::IRC::Client::Data(this);
@ -317,7 +317,7 @@ const Jupiter::Config *Jupiter::IRC::Client::getSecondaryConfigSection() const
return Jupiter::IRC::Client::data_->secondary_section;
}
void Jupiter::IRC::Client::setPrimaryConfigSection(const Jupiter::Config *in_primary_section)
void Jupiter::IRC::Client::setPrimaryConfigSection(Jupiter::Config *in_primary_section)
{
Jupiter::IRC::Client::data_->primary_section = in_primary_section;
@ -327,7 +327,7 @@ void Jupiter::IRC::Client::setPrimaryConfigSection(const Jupiter::Config *in_pri
Jupiter::IRC::Client::data_->primary_section_name.erase();
}
void Jupiter::IRC::Client::setSecondaryConfigSection(const Jupiter::Config *in_secondary_section)
void Jupiter::IRC::Client::setSecondaryConfigSection(Jupiter::Config *in_secondary_section)
{
Jupiter::IRC::Client::data_->secondary_section = in_secondary_section;
}

6
Jupiter/IRC_Client.h

@ -494,7 +494,7 @@ namespace Jupiter
*
* @param in_primary_section Primary config section to begin using
*/
virtual void setPrimaryConfigSection(const Jupiter::Config *in_primary_section);
virtual void setPrimaryConfigSection(Jupiter::Config *in_primary_section);
/**
* @brief Sets the secondary config section
@ -502,7 +502,7 @@ namespace Jupiter
*
* @param in_secondary_section Secondary config section to begin using
*/
virtual void setSecondaryConfigSection(const Jupiter::Config *in_secondary_section);
virtual void setSecondaryConfigSection(Jupiter::Config *in_secondary_section);
/**
* @brief Returns the name of the file this logs to.
@ -887,7 +887,7 @@ namespace Jupiter
* @param in_primary_section Config section to search first for a configuration option
* @param in_secondary_section Config section to search second for a configuration, before using a pre-defined default value
*/
Client(const Jupiter::Config *in_primary_section, const Jupiter::Config *in_secondary_section);
Client(Jupiter::Config *in_primary_section, Jupiter::Config *in_secondary_section);
/**
* @brief Destructor for a client.

Loading…
Cancel
Save