sipxtacklib  Version 3.3
MailAttachment.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 // MailAttachment class declaration for Mailer
12 
13 #ifndef __MAILATTACHMENT_H__
14 #define __MAILATTACHMENT_H__
15 
16 #include "os/OsDefs.h"
17 #include "os/OsFS.h"
18 
20 {
21 public:
22  MailAttachment() { m_Base64 = NULL; }
24  MailAttachment(const MailAttachment &original);
25  bool Load(const UtlString &filename);
26  bool Load(const unsigned char *data, const size_t& rDatalength, const UtlString &rFilename );
27  UtlString Base64Data() const { return UtlString(m_Base64); }
28  UtlString Filename() const { return m_Filename; }
29  UtlString MIMEtype() const { return m_MIMEtype; }
30 
31 private:
32  void Base64Encode(const unsigned char *buffer, unsigned long buflen);
33  char *m_Base64;
34 
35  UtlString m_Filename;
36  UtlString m_MIMEtype;
37 };
38 
39 #endif
Definition: MailAttachment.h:19
UtlString Filename() const
Definition: MailAttachment.h:28
UtlString MIMEtype() const
Definition: MailAttachment.h:29
UtlString Base64Data() const
Definition: MailAttachment.h:27
bool Load(const UtlString &filename)
Definition: MailAttachment.cpp:35
~MailAttachment()
Definition: MailAttachment.cpp:131
MailAttachment()
Definition: MailAttachment.h:22

sipXtackLib home page