From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- comm/mailnews/search/public/nsMsgResultElement.h | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 comm/mailnews/search/public/nsMsgResultElement.h (limited to 'comm/mailnews/search/public/nsMsgResultElement.h') diff --git a/comm/mailnews/search/public/nsMsgResultElement.h b/comm/mailnews/search/public/nsMsgResultElement.h new file mode 100644 index 0000000000..104e6a3771 --- /dev/null +++ b/comm/mailnews/search/public/nsMsgResultElement.h @@ -0,0 +1,40 @@ +/* -*- 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 __nsMsgResultElement_h +#define __nsMsgResultElement_h + +#include "nsMsgSearchCore.h" +#include "nsIMsgSearchAdapter.h" +#include "nsTArray.h" + +// nsMsgResultElement specifies a single search hit. + +//--------------------------------------------------------------------------- +// nsMsgResultElement is a list of attribute/value pairs which are used to +// represent a search hit without requiring a message header or server +// connection +//--------------------------------------------------------------------------- + +class nsMsgResultElement { + public: + explicit nsMsgResultElement(nsIMsgSearchAdapter*); + virtual ~nsMsgResultElement(); + + static nsresult AssignValues(nsIMsgSearchValue* src, nsMsgSearchValue* dst); + nsresult GetValue(nsMsgSearchAttribValue, nsMsgSearchValue**) const; + nsresult AddValue(nsIMsgSearchValue*); + nsresult AddValue(nsMsgSearchValue*); + + nsresult GetPrettyName(nsMsgSearchValue**); + nsresult Open(void* window); + + nsTArray > m_valueList; + nsIMsgSearchAdapter* m_adapter; + + protected: +}; + +#endif -- cgit v1.2.3