mailnews/local/src/nsMsgMaildirStore.h
author Frank-Rainer Grahl <frgrahl@gmx.net>
Tue, 02 Feb 2016 08:08:00 +0100
changeset 24328 8262aa13936c778e5b5b919523b0d19ec75bc303
parent 22208 94adb5945ec3147c246b55b123676c324274fd25
child 30718 5c6080601881263fd50409857f9e6b13e2cae4f0
permissions -rw-r--r--
Bug 1240284 - Remove ordinals and description statements from def files. r=glandium Silence linker warnings LNK4222 and LNK4017. Also includes some whitespace fixes.

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */

/**
   Class for handling Maildir stores.
*/

#ifndef nsMsgMaildirStore_h__
#define nsMsgMaildirStore_h__

#include "nsMsgLocalStoreUtils.h"
#include "nsIFile.h"
#include "nsMsgMessageFlags.h"

class nsMsgMaildirStore final : public nsMsgLocalStoreUtils, nsIMsgPluggableStore
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGPLUGGABLESTORE

  nsMsgMaildirStore();

private:
  ~nsMsgMaildirStore();

protected:
  nsresult GetDirectoryForFolder(nsIFile *path);
  nsresult CreateDirectoryForFolder(nsIFile *path, bool aIsServer);

  nsresult CreateMaildir(nsIFile *path);
  nsresult AddSubFolders(nsIMsgFolder *parent, nsIFile *path, bool deep);
  nsresult GetOutputStream(nsIMsgDBHdr *aHdr,
                           nsCOMPtr<nsIOutputStream> &aOutputStream);

};
#endif