mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 18:07:31 +09:00
Issue #1258 - Part 1: Import mailnews, ldap, and mork from comm-esr52.9.1
This commit is contained in:
parent
23e0d82436
commit
e400f4130a
1564 changed files with 510348 additions and 0 deletions
48
mailnews/base/util/nsMsgReadStateTxn.h
Normal file
48
mailnews/base/util/nsMsgReadStateTxn.h
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
/* -*- 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/. */
|
||||
|
||||
#ifndef nsMsgBaseUndoTxn_h_
|
||||
#define nsMsgBaseUndoTxn_h_
|
||||
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "nsMsgTxn.h"
|
||||
#include "nsTArray.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "MailNewsTypes.h"
|
||||
#include "nsIMsgFolder.h"
|
||||
|
||||
|
||||
#define NS_MSGREADSTATETXN_IID \
|
||||
{ /* 121FCE4A-3EA1-455C-8161-839E1557D0CF */ \
|
||||
0x121FCE4A, 0x3EA1, 0x455C, \
|
||||
{ 0x81, 0x61, 0x83, 0x9E, 0x15, 0x57, 0xD0, 0xCF } \
|
||||
}
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// A mark-all transaction handler. Helper for redo/undo of message read states.
|
||||
//------------------------------------------------------------------------------
|
||||
class NS_MSG_BASE nsMsgReadStateTxn : public nsMsgTxn
|
||||
{
|
||||
public:
|
||||
nsMsgReadStateTxn();
|
||||
virtual ~nsMsgReadStateTxn();
|
||||
|
||||
nsresult Init(nsIMsgFolder *aParentFolder,
|
||||
uint32_t aNumKeys,
|
||||
nsMsgKey *aMsgKeyArray);
|
||||
NS_IMETHOD UndoTransaction() override;
|
||||
NS_IMETHOD RedoTransaction() override;
|
||||
|
||||
protected:
|
||||
NS_IMETHOD MarkMessages(bool aAsRead);
|
||||
|
||||
private:
|
||||
nsCOMPtr<nsIMsgFolder> mParentFolder;
|
||||
nsTArray<nsMsgKey> mMarkedMessages;
|
||||
};
|
||||
|
||||
#endif // nsMsgBaseUndoTxn_h_
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue