mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 03:00:30 +00:00
67 lines
2.4 KiB
C++
67 lines
2.4 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape Public
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
* implied. See the License for the specific language governing
|
|
* rights and limitations under the License.
|
|
*
|
|
* The Original Code is mozilla.org code.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
*/
|
|
#ifndef _THREADS_WITH_NEW_H
|
|
#define _THREADS_WITH_NEW_H
|
|
|
|
#include "thrdbvw.h"
|
|
|
|
class ThreadsWithNewView : public ThreadDBView
|
|
{
|
|
public:
|
|
ThreadsWithNewView(ViewType viewType);
|
|
virtual ~ThreadsWithNewView();
|
|
const char * GetViewName(void) {return "ThreadsWithNewView"; }
|
|
virtual MsgERR Open(MessageDB *messageDB, ViewType viewType, /*WORD viewFlags,*/ uint32* pCount, XP_Bool runInForeground = TRUE);
|
|
virtual XP_Bool WantsThisThread(DBThreadMessageHdr *threadHdr);
|
|
protected:
|
|
|
|
};
|
|
|
|
// This view will initially be used for cacheless IMAP.
|
|
class CachelessView : public MessageDBView
|
|
{
|
|
public:
|
|
CachelessView(ViewType viewType);
|
|
virtual ~CachelessView();
|
|
const char * GetViewName(void) {return "CachelessView"; }
|
|
virtual MsgERR Open(MessageDB *messageDB, ViewType viewType, /*WORD viewFlags,*/ uint32* pCount, XP_Bool runInForeground = TRUE);
|
|
MsgERR ListShortMsgHdrByIndex(MSG_ViewIndex startIndex, int numToList, MSG_MessageLine *pOutput, int *pNumListed);
|
|
MsgERR SetViewSize(int32 setSize); // Override
|
|
virtual MsgERR AddNewMessages() ;
|
|
virtual MsgERR AddHdr(DBMessageHdr *msgHdr);
|
|
// for news, xover line, potentially, for IMAP, imap line...
|
|
virtual MsgERR AddHdrFromServerLine(char *line, MessageKey *msgId) ;
|
|
virtual void SetInitialSortState(void);
|
|
virtual MsgERR Init(uint32 *pCount, XP_Bool runInForeground /* = TRUE */);
|
|
protected:
|
|
static void ExitFunction (URL_Struct *URL_s, int status, MWContext *window_id);
|
|
void ClearPendingIds();
|
|
|
|
MSG_FolderInfo *m_folder;
|
|
MSG_Master *m_master;
|
|
MSG_ViewIndex m_curStartSeq;
|
|
MSG_ViewIndex m_curEndSeq;
|
|
XP_Bool m_sizeInitialized;
|
|
};
|
|
|
|
#endif
|