author Mozilla Releng Treescript <>
Thu, 04 Mar 2021 08:37:39 +0000
changeset 41382 e0ef3b915829de67a19cf5690bffbe145d12d20b
parent 38786 06085479b24375af086fd0000cc00b5ce78d1d61
permissions -rw-r--r--
no bug - Bumping Thunderbird l10n changesets r=release a=l10n-bump DONTBUILD ast -> 85a961d250a508f263c17cad193a1e22d2c3cda4 el -> e854408efa0e739e3c22f0d8ab9d4b627927aa0b fr -> 110114d176859c191c39d7457f76c5c9247b6a25 it -> 3ab129cf7624f59655156d7a11dfbee4999e9359 pt-BR -> d8b467ec60373a43391d3d3f9f4f773e301076a1 pt-PT -> eb0f997231b20e39cfe263e5168f2c9f6f8aadc1 zh-CN -> 177af21d2e347c7735cc5282b0fa3d5949ff94dc

/* -*- 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 */

#ifndef nsNntpUrl_h__
#define nsNntpUrl_h__

#include "nsINntpUrl.h"
#include "nsMsgMailNewsUrl.h"
#include "nsINNTPNewsgroupPost.h"
#include "nsIFile.h"

class nsNntpUrl : public nsINntpUrl,
                  public nsMsgMailNewsUrl,
                  public nsIMsgMessageUrl,
                  public nsIMsgI18NUrl {

  // nsMsgMailNewsUrl overrides
  nsresult SetSpecInternal(const nsACString& aSpec) override;
  nsresult Clone(nsIURI** _retval) override;

  NS_IMETHOD IsUrlType(uint32_t type, bool* isType) override;

  // nsIMsgMailNewsUrl overrides
  NS_IMETHOD GetServer(nsIMsgIncomingServer** server) override;
  NS_IMETHOD GetFolder(nsIMsgFolder** msgFolder) override;

  // nsNntpUrl


  virtual ~nsNntpUrl();
  nsresult DetermineNewsAction();
  nsresult ParseNewsURL();
  nsresult ParseNntpURL();

  nsCOMPtr<nsINNTPNewsgroupPost> m_newsgroupPost;
  nsNewsAction m_newsAction;  // the action this url represents...parse mailbox,
                              // display messages, etc.

  nsCString mURI;              // the RDF URI associated with this url.
  nsCString mCharsetOverride;  // used by nsIMsgI18NUrl...

  nsCString mOriginalSpec;
  nsCOMPtr<nsIFile> m_filePath;

  // used by save message to disk
  nsCOMPtr<nsIFile> m_messageFile;

  bool m_addDummyEnvelope;
  bool m_canonicalLineEnding;
  bool m_getOldMessages;

  nsCString m_group;
  nsCString m_messageID;
  nsMsgKey m_key;

#endif  // nsNntpUrl_h__