From 2949fb51f13e1236d5c161f02e1c2c8541100e9f Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 21 Oct 2004 15:05:47 +0000 Subject: Refactoring (see ChangeLog). --- src/encoderQP.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/encoderQP.cpp') diff --git a/src/encoderQP.cpp b/src/encoderQP.cpp index 46125c93..637d0b9e 100644 --- a/src/encoderQP.cpp +++ b/src/encoderQP.cpp @@ -30,9 +30,9 @@ encoderQP::encoderQP() } -const std::vector encoderQP::availableProperties() const +const std::vector encoderQP::getAvailableProperties() const { - std::vector list(encoder::availableProperties()); + std::vector list(encoder::getAvailableProperties()); list.push_back("maxlinelength"); @@ -84,10 +84,10 @@ const utility::stream::size_type encoderQP::encode(utility::inputStream& in, uti in.reset(); // may not work... const string::size_type propMaxLineLength = - properties().get ("maxlinelength", (string::size_type) -1); + getProperties().getProperty ("maxlinelength", (string::size_type) -1); - const bool rfc2047 = properties().get ("rfc2047", false); - const bool text = properties().get ("text", false); // binary mode by default + const bool rfc2047 = getProperties().getProperty ("rfc2047", false); + const bool text = getProperties().getProperty ("text", false); // binary mode by default const bool cutLines = (propMaxLineLength != (string::size_type) -1); const string::size_type maxLineLength = std::min(propMaxLineLength, (string::size_type) 74); @@ -279,7 +279,7 @@ const utility::stream::size_type encoderQP::decode(utility::inputStream& in, uti in.reset(); // may not work... // Process the data - const bool rfc2047 = properties().get ("rfc2047", false); + const bool rfc2047 = getProperties().getProperty ("rfc2047", false); char buffer[16384]; int bufferLength = 0; -- cgit v1.2.3