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/encoderUUE.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/encoderUUE.cpp') diff --git a/src/encoderUUE.cpp b/src/encoderUUE.cpp index 78dffa0c..dbc31ce8 100644 --- a/src/encoderUUE.cpp +++ b/src/encoderUUE.cpp @@ -27,15 +27,15 @@ namespace vmime encoderUUE::encoderUUE() { - properties()["mode"] = 644; - properties()["filename"] = "no_name"; - properties()["maxlinelength"] = 46; + getProperties()["mode"] = 644; + getProperties()["filename"] = "no_name"; + getProperties()["maxlinelength"] = 46; } -const std::vector encoderUUE::availableProperties() const +const std::vector encoderUUE::getAvailableProperties() const { - std::vector list(encoder::availableProperties()); + std::vector list(encoder::getAvailableProperties()); list.push_back("maxlinelength"); @@ -63,11 +63,11 @@ const utility::stream::size_type encoderUUE::encode(utility::inputStream& in, ut { in.reset(); // may not work... - const string propFilename = properties().get ("filename", ""); - const string propMode = properties().get ("mode", "644"); + const string propFilename = getProperties().getProperty ("filename", ""); + const string propMode = getProperties().getProperty ("mode", "644"); const string::size_type maxLineLength = - std::min(properties().get ("maxlinelength", 46), + std::min(getProperties().getProperty ("maxlinelength", 46), static_cast (46)); utility::stream::size_type total = 0; @@ -206,7 +206,7 @@ const utility::stream::size_type encoderUUE::decode(utility::inputStream& in, ut while (*p && !isspace(*p)) ++p; - results()["mode"] = string(modeStart, p); + getResults()["mode"] = string(modeStart, p); while (*p && isspace(*p)) ++p; @@ -214,13 +214,13 @@ const utility::stream::size_type encoderUUE::decode(utility::inputStream& in, ut while (*p && !(*p == '\r' || *p == '\n')) ++p; - results()["filename"] = string(filenameStart, p); + getResults()["filename"] = string(filenameStart, p); } // No filename or mode specified else { - results()["filename"] = "untitled"; - results()["mode"] = 644; + getResults()["filename"] = "untitled"; + getResults()["mode"] = 644; } continue; -- cgit v1.2.3