diff options
author | Vincent Richard <[email protected]> | 2004-10-21 15:05:47 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2004-10-21 15:05:47 +0000 |
commit | 2949fb51f13e1236d5c161f02e1c2c8541100e9f (patch) | |
tree | 991edcf50483116ce83977a4d9e652de8c5328dc /src/encoderQP.cpp | |
parent | header class unit tests added (diff) | |
download | vmime-2949fb51f13e1236d5c161f02e1c2c8541100e9f.tar.gz vmime-2949fb51f13e1236d5c161f02e1c2c8541100e9f.zip |
Refactoring (see ChangeLog).
Diffstat (limited to 'src/encoderQP.cpp')
-rw-r--r-- | src/encoderQP.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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 <string> encoderQP::availableProperties() const +const std::vector <string> encoderQP::getAvailableProperties() const { - std::vector <string> list(encoder::availableProperties()); + std::vector <string> 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 <string::size_type>("maxlinelength", (string::size_type) -1); + getProperties().getProperty <string::size_type>("maxlinelength", (string::size_type) -1); - const bool rfc2047 = properties().get <bool>("rfc2047", false); - const bool text = properties().get <bool>("text", false); // binary mode by default + const bool rfc2047 = getProperties().getProperty <bool>("rfc2047", false); + const bool text = getProperties().getProperty <bool>("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 <bool>("rfc2047", false); + const bool rfc2047 = getProperties().getProperty <bool>("rfc2047", false); char buffer[16384]; int bufferLength = 0; |