gecko-dev/mailnews/news/public/nsINntpUrl.h

77 строки
2.7 KiB
C
Исходник Обычный вид История

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
1999-02-02 05:33:32 +03:00
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
1999-02-02 05:50:46 +03:00
#ifndef nsINntpUrl_h___
#define nsINntpUrl_h___
1999-02-02 05:33:32 +03:00
#include "nscore.h"
#include "MailNewsTypes.h"
#include "nsIMsgMailNewsUrl.h"
1999-02-02 05:33:32 +03:00
#include "nsISupports.h"
/* include all of our event sink interfaces */
#include "nsINNTPNewsgroupList.h"
#include "nsINNTPArticleList.h"
#include "nsINNTPHost.h"
#include "nsINNTPNewsgroup.h"
#include "nsINNTPNewsgroupPost.h"
1999-02-02 05:33:32 +03:00
#include "nsIMsgOfflineNewsState.h"
/* BDD12930-A682-11d2-804C-006008128C4E */
1999-03-24 05:30:19 +03:00
#define NS_INNTPURL_IID \
{ 0xbdd12930, 0xa682, 0x11d2, \
1999-02-02 05:33:32 +03:00
{ 0x80, 0x4c, 0x0, 0x60, 0x8, 0x12, 0x8c, 0x4e } }
1999-03-24 05:30:19 +03:00
/* 196B4B30-E18C-11d2-806E-006008128C4E */
#define NS_NNTPURL_CID \
{ 0x196b4b30, 0xe18c, 0x11d2, \
{ 0x80, 0x6e, 0x0, 0x60, 0x8, 0x12, 0x8c, 0x4e } }
class nsINntpUrl : public nsIMsgMailNewsUrl
1999-02-02 05:33:32 +03:00
{
public:
static const nsIID& GetIID() { static nsIID iid = NS_INNTPURL_IID; return iid; }
1999-02-02 05:33:32 +03:00
///////////////////////////////////////////////////////////////////////////////
// Getters and Setters for the news specific event sinks to bind to to your url
///////////////////////////////////////////////////////////////////////////////
1999-02-02 05:50:46 +03:00
NS_IMETHOD SetNntpHost (nsINNTPHost * newsHost) = 0;
NS_IMETHOD GetNntpHost (nsINNTPHost ** newsHost) const = 0;
1999-02-02 05:33:32 +03:00
1999-02-02 05:50:46 +03:00
NS_IMETHOD SetNntpArticleList (nsINNTPArticleList * articleList) = 0;
NS_IMETHOD GetNntpArticleList (nsINNTPArticleList ** articleList) const = 0;
1999-02-02 05:33:32 +03:00
NS_IMETHOD SetNewsgroup (nsINNTPNewsgroup * newsgroup) = 0;
NS_IMETHOD GetNewsgroup (nsINNTPNewsgroup ** newsgroup) const = 0;
NS_IMETHOD SetOfflineNewsState (nsIMsgOfflineNewsState * offlineNews) = 0;
NS_IMETHOD GetOfflineNewsState (nsIMsgOfflineNewsState ** offlineNews) const = 0;
NS_IMETHOD SetNewsgroupList (nsINNTPNewsgroupList * xoverParser) = 0;
NS_IMETHOD GetNewsgroupList (nsINNTPNewsgroupList ** xoverParser) const = 0;
NS_IMETHOD SetMessageToPost (nsINNTPNewsgroupPost *post) = 0;
NS_IMETHOD GetMessageToPost (nsINNTPNewsgroupPost **post) = 0;
1999-02-02 05:33:32 +03:00
};
#endif /* nsIHttpURL_h___ */