From f0bef0f5856661b7454ecb9389bcdc0742ad3dfd Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 2 Jan 2015 15:00:22 +0000 Subject: [PATCH] Core/POP3: Now in Upp namespace git-svn-id: svn://ultimatepp.org/upp/trunk@8019 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/POP3/InetMessage.cpp | 4 ++++ uppsrc/Core/POP3/POP3.cpp | 4 ++++ uppsrc/Core/POP3/POP3.h | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/uppsrc/Core/POP3/InetMessage.cpp b/uppsrc/Core/POP3/InetMessage.cpp index 4241aee19..67df34a86 100644 --- a/uppsrc/Core/POP3/InetMessage.cpp +++ b/uppsrc/Core/POP3/InetMessage.cpp @@ -2,6 +2,8 @@ #define LLOG(x) // DLOG(x) +NAMESPACE_UPP + String QDecode(const String& s) { String r, begin, end, chs, enc, txt; @@ -350,3 +352,5 @@ String FormatMessageIDs(const Index& id) } return r; } + +END_UPP_NAMESPACE diff --git a/uppsrc/Core/POP3/POP3.cpp b/uppsrc/Core/POP3/POP3.cpp index 59640f539..52ef82b6f 100644 --- a/uppsrc/Core/POP3/POP3.cpp +++ b/uppsrc/Core/POP3/POP3.cpp @@ -1,5 +1,7 @@ #include "POP3.h" +NAMESPACE_UPP + static bool sPop3Trace; #define LLOG(x) do { if(sPop3Trace) RLOG(CompressLog(String().Cat() << x)); } while(0) @@ -252,3 +254,5 @@ Pop3::~Pop3() { Logout(); } + +END_UPP_NAMESPACE diff --git a/uppsrc/Core/POP3/POP3.h b/uppsrc/Core/POP3/POP3.h index a20f97d21..3f6479f4b 100644 --- a/uppsrc/Core/POP3/POP3.h +++ b/uppsrc/Core/POP3/POP3.h @@ -3,7 +3,7 @@ #include -using namespace Upp; +NAMESPACE_UPP class Pop3 : public TcpSocket { @@ -110,4 +110,6 @@ struct MIMEHeader { Index ParseMessageIDs(const String& s); String FormatMessageIDs(const Index& id); +END_UPP_NAMESPACE + #endif