Switch to unified view

a/src/bincimapmime/mime.h b/src/bincimapmime/mime.h
...
...
106
    inline unsigned int getBodyLength(void) const { return bodylength; }
106
    inline unsigned int getBodyLength(void) const { return bodylength; }
107
    inline unsigned int getBodyStartOffset(void) const { return bodystartoffsetcrlf; }
107
    inline unsigned int getBodyStartOffset(void) const { return bodystartoffsetcrlf; }
108
108
109
    void printBody(int fd, Binc::IODevice &output, unsigned int startoffset, unsigned int length) const;
109
    void printBody(int fd, Binc::IODevice &output, unsigned int startoffset, unsigned int length) const;
110
      void getBody(int fd, std::string& s, unsigned int startoffset, unsigned int length) const;
110
      void getBody(int fd, std::string& s, unsigned int startoffset, unsigned int length) const;
111
      void getBody(std::string& s, unsigned int startoffset, unsigned int length) const;
111
    void printHeader(int fd, Binc::IODevice &output, std::vector<std::string> headers, bool includeheaders, unsigned int startoffset, unsigned int length, std::string &storage) const;
112
    void printHeader(int fd, Binc::IODevice &output, std::vector<std::string> headers, bool includeheaders, unsigned int startoffset, unsigned int length, std::string &storage) const;
112
    void printDoc(int fd, Binc::IODevice &output, unsigned int startoffset, unsigned int length) const;
113
    void printDoc(int fd, Binc::IODevice &output, unsigned int startoffset, unsigned int length) const;
113
    virtual void clear(void) const;
114
    virtual void clear(void) const;
114
115
115
    const MimePart *getPart(const std::string &findpart, std::string genpart, FetchType fetchType = FetchBody) const;
116
    const MimePart *getPart(const std::string &findpart, std::string genpart, FetchType fetchType = FetchBody) const;
...
...
127
    mutable bool allIsParsed;
128
    mutable bool allIsParsed;
128
129
129
  public:
130
  public:
130
    void parseOnlyHeader(int fd) const;
131
    void parseOnlyHeader(int fd) const;
131
    void parseFull(int fd) const;
132
    void parseFull(int fd) const;
133
    void parseOnlyHeader(std::istream& s) const;
134
    void parseFull(std::istream& s) const;
132
    void clear(void) const;
135
    void clear(void) const;
133
    
136
    
134
    inline bool isHeaderParsed(void) { return headerIsParsed; }
137
    inline bool isHeaderParsed(void) { return headerIsParsed; }
135
    inline bool isAllParsed(void) { return allIsParsed; }
138
    inline bool isAllParsed(void) { return allIsParsed; }
136
139