mailnews/news/src/nsNNTPNewsgroupPost.h
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Sun, 28 Feb 2021 08:38:45 +0000
changeset 41364 34624dcfc8c02624147f09f916100d1b5588270e
parent 34354 9e527e651e5c6044973c705e74a7cd017bcb224f
permissions -rw-r--r--
no bug - Bumping Thunderbird l10n changesets r=release a=l10n-bump DONTBUILD de -> b80994057d16938db195fb54bade418a01ca084c dsb -> 8a8fdf8cae82c27d86cd5bfb1295a9647b204bc2 en-CA -> 41432174f231ccbfb3006bcc89437350626602b9 es-AR -> 8c0c5816889fed9a603ded2d2bb888536d8011aa fr -> e642311c31ebc208eaef42f3a39a9897fea30de5 he -> b60cd8a24ce8b70f1dcc6a17e0caf3431c954ec5 hsb -> 07008a27fe75e89f4941291b69bcf66fab5106ff hu -> 8e9c8709f87fa3de1975d21a75500615bcf526b3 it -> 5f242a3e69e4cf0c663c30743e40380e9b830893 kk -> 0a71adbbe04c4fe442e5ad1de6f47abe92884e2b lt -> 463bf9ab75164a3273a2a82596cafbbff8e43264 nl -> 6adc07dcf3be7ab40bd22bf2ebf3bc0f557db716 nn-NO -> 258cfd034ad244efe2fc06f66c11ab72a774a7b3 pl -> 1b0a08999b5ff10164f859cf0a374ddfa099c973 rm -> 83e0b524606ba7b4cc61c8aa075ce07d8d633b09 sk -> b9c3e8a3cbbcbe312c8455e6f495d9bc4f9161ed tr -> 19dbba93d563c3da21a0477e7d32f6e9d930a0b8

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef __nsNNTPNewsgroupPost_h
#define __nsNNTPNewsgroupPost_h

#include "msgCore.h"
#include "nsINNTPNewsgroupPost.h"
#include "nsCOMPtr.h"
#include "nsString.h"
#include "nsIFile.h"

#define IDX_HEADER_FROM 0
#define IDX_HEADER_NEWSGROUPS 1
#define IDX_HEADER_SUBJECT 2

// set this to the last required header
#define IDX_HEADER_LAST_REQUIRED IDX_HEADER_SUBJECT

#define IDX_HEADER_PATH 3
#define IDX_HEADER_DATE 4

#define IDX_HEADER_REPLYTO 5
#define IDX_HEADER_SENDER 6
#define IDX_HEADER_FOLLOWUPTO 7
#define IDX_HEADER_DATERECEIVED 8
#define IDX_HEADER_EXPIRES 9
#define IDX_HEADER_CONTROL 10
#define IDX_HEADER_DISTRIBUTION 11
#define IDX_HEADER_ORGANIZATION 12
#define IDX_HEADER_REFERENCES 13

// stuff that's required to be in the message,
// but probably generated on the server
#define IDX_HEADER_RELAYVERSION 14
#define IDX_HEADER_POSTINGVERSION 15
#define IDX_HEADER_MESSAGEID 16

// keep this in sync with the above
#define HEADER_LAST IDX_HEADER_MESSAGEID

class nsNNTPNewsgroupPost : public nsINNTPNewsgroupPost {
 public:
  nsNNTPNewsgroupPost();

  NS_DECL_ISUPPORTS
  NS_DECL_NSINNTPNEWSGROUPPOST

 private:
  virtual ~nsNNTPNewsgroupPost();

  nsCOMPtr<nsIFile> m_postMessageFile;
  nsCString m_header[HEADER_LAST + 1];
  nsCString m_body;
  bool m_isControl;
};

#endif /* __nsNNTPNewsgroupPost_h */