~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to mimelib/attach.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//=============================================================================
2
 
// File:       attach.h
3
 
// Contents:   Declarations for MessageWithAttachments
4
 
// Maintainer: Doug Sauder <dwsauder@fwb.gulf.net>
5
 
// WWW:        http://www.fwb.gulf.net/~dwsauder/mimepp.html
6
 
//
7
 
// Copyright (c) 1996, 1997 Douglas W. Sauder
8
 
// All rights reserved.
9
 
// 
10
 
// IN NO EVENT SHALL DOUGLAS W. SAUDER BE LIABLE TO ANY PARTY FOR DIRECT,
11
 
// INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF
12
 
// THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF DOUGLAS W. SAUDER
13
 
// HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
 
//
15
 
// DOUGLAS W. SAUDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT
16
 
// NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
17
 
// PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS"
18
 
// BASIS, AND DOUGLAS W. SAUDER HAS NO OBLIGATION TO PROVIDE MAINTENANCE,
19
 
// SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
20
 
//
21
 
//=============================================================================
22
 
 
23
 
#ifndef ATTACH_H
24
 
#define ATTACH_H
25
 
 
26
 
#include "multipar.h"
27
 
 
28
 
 
29
 
class DwString;
30
 
 
31
 
 
32
 
class MessageWithAttachments : public MultipartMessage {
33
 
 
34
 
public:
35
 
 
36
 
    MessageWithAttachments();
37
 
    virtual ~MessageWithAttachments();
38
 
    
39
 
    void SetText(const DwString& aStr);
40
 
    int NumberOfAttachments() const;
41
 
    void Attach7bitFile(const char* aFilename, int aType=DwMime::kTypeText,
42
 
        int aSubtype=DwMime::kSubtypePlain);
43
 
    void Attach8bitFile(const char* aFilename, int aType=DwMime::kTypeText,
44
 
         int aSubtype=DwMime::kSubtypePlain);
45
 
    void AttachBinaryFile(const char* aFilename, int aType=DwMime::kTypeApplication,
46
 
        int aSubtype=DwMime::kSubtypeOctetStream);
47
 
 
48
 
protected:
49
 
 
50
 
    int PutFileInString(const char* aFilename, DwString& str);
51
 
 
52
 
};
53
 
 
54
 
#endif