Switch to unified view

a/src/internfile/mimehandler.h b/src/internfile/mimehandler.h
...
...
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
#ifndef _MIMEHANDLER_H_INCLUDED_
17
#ifndef _MIMEHANDLER_H_INCLUDED_
18
#define _MIMEHANDLER_H_INCLUDED_
18
#define _MIMEHANDLER_H_INCLUDED_
19
#include "autoconfig.h"
19
#include "autoconfig.h"
20
21
#include <stdio.h>
20
22
21
#include <string>
23
#include <string>
22
#include <list>
24
#include <list>
23
using std::string;
25
using std::string;
24
using std::list;
26
using std::list;
...
...
62
64
63
    // Default implementations
65
    // Default implementations
64
    virtual bool set_document_string(const std::string &) {return false;}
66
    virtual bool set_document_string(const std::string &) {return false;}
65
    virtual bool set_document_data(const char *cp, unsigned int sz) {
67
    virtual bool set_document_data(const char *cp, unsigned int sz) {
66
    return set_document_string(string(cp, sz));
68
    return set_document_string(string(cp, sz));
69
    }
70
71
    virtual void set_docsize(size_t size)
72
    {
73
  char csize[30];
74
  sprintf(csize, "%lld", (long long)size);
75
  m_metaData[cstr_dj_keydocsize] = csize;
67
    }
76
    }
68
77
69
    virtual bool has_documents() const {return m_havedoc;}
78
    virtual bool has_documents() const {return m_havedoc;}
70
79
71
    // Most doc types are single-doc
80
    // Most doc types are single-doc