author aceman <>
Tue, 11 Nov 2014 15:40:00 +0100
changeset 21463 34afccc6f8f755638c6fe79ed257a34df37a8050
parent 20463 43010e7a79b9b249a1b3cc12cce1acd555a83fa0
child 25604 75e7f00fedba73d33d32194a6831f7ae72d5f150
permissions -rw-r--r--
Bug 793865 - mark function arguments as nsMsgKey where appropriate to better show intended use. r=rkent

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

  // nsIURI over-ride...
  NS_IMETHOD SetSpec(const nsACString &aSpec);

  NS_IMETHOD IsUrlType(uint32_t type, bool *isType);

  // nsIMsgMailNewsUrl overrides
  NS_IMETHOD GetServer(nsIMsgIncomingServer **server);
  NS_IMETHOD GetFolder(nsIMsgFolder **msgFolder);
  NS_IMETHOD Clone(nsIURI **_retval);

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