From d7889302354cbaaf33cbe6be2e7d6b58ed5eb0cc Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Sat, 9 Jan 1999 00:15:46 +0000 Subject: [PATCH] adding nsINNTPArticleKeysState for the first time - broke these three methods out of nsIMsgNewsArticleList.idl --- .../news/public/nsINNTPArticleKeysState.h | 39 +++++++++++++++++++ .../news/public/nsINNTPArticleKeysState.idl | 35 +++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 mailnews/news/public/nsINNTPArticleKeysState.h create mode 100644 mailnews/news/public/nsINNTPArticleKeysState.idl diff --git a/mailnews/news/public/nsINNTPArticleKeysState.h b/mailnews/news/public/nsINNTPArticleKeysState.h new file mode 100644 index 000000000000..00c000121f33 --- /dev/null +++ b/mailnews/news/public/nsINNTPArticleKeysState.h @@ -0,0 +1,39 @@ +/* + * DO NOT EDIT. THIS FILE IS GENERATED FROM nsINNTPArticleKeysState.idl + */ + +#ifndef __nsINNTPArticleKeysState_h__ +#define __nsINNTPArticleKeysState_h__ + +#include "nsISupports.h" /* interface nsISupports */ +#include "nsIMsgNewsgroup.h" /* interface nsIMsgNewsgroup */ + +/* starting interface nsINNTPArticleKeysState */ + +/* {921AC214-96B5-11d2-B7EB-00805F05FFA5} */ +#define NS_INNTPARTICLEKEYSSTATE_IID_STR "921AC214-96B5-11d2-B7EB-00805F05FFA5" +#define NS_INNTPARTICLEKEYSSTATE_IID \ + {0x921AC214, 0x96B5, 0x11d2, \ + { 0xB7, 0xEB, 0x00, 0x80, 0x5F, 0x05, 0xFF, 0xA5 }} + +class nsINNTPArticleKeysState : public nsISupports { + private: + void operator delete(void *); // NOT TO BE IMPLEMENTED + + public: + static const nsIID& IID() { + static nsIID iid = NS_INNTPARTICLEKEYSSTATE_IID; + return iid; + } + + /* void Init(in string newsHost, in nsIMsgNewsgroup newsgroup); */ + NS_IMETHOD Init(const char *newsHost, const nsIMsgNewsgroup *newsgroup) = 0; + + /* void AddArticleKey(in key); */ + NS_IMETHOD AddArticleKey(PRInt32 key) = 0; + + /* void FinishAddingArticleKeys(); */ + NS_IMETHOD FinishAddingArticleKeys() = 0; +}; + +#endif /* __nsINNTPArticleKeysState_h__ */ diff --git a/mailnews/news/public/nsINNTPArticleKeysState.idl b/mailnews/news/public/nsINNTPArticleKeysState.idl new file mode 100644 index 000000000000..e9b5faceeade --- /dev/null +++ b/mailnews/news/public/nsINNTPArticleKeysState.idl @@ -0,0 +1,35 @@ +/* -*- 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.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. + */ + +#include "nsISupports.idl" +#include "nsIMsgNewsgroup.idl" +/* the XPIDL compiler doesn't like including this file? + * I think it's because this file include another file + * I had to change the type below to a string temporarily */ +/* #include "nsIMsgNewsHost.idl" */ + +[object, uuid(921AC214-96B5-11d2-B7EB-00805F05FFA5)] +interface nsINNTPArticleKeysState : nsISupports { + + void Init(in /* nsIMsgNewsHost */ string newsHost, + in nsIMsgNewsgroup newsgroup); + void AddArticleKey(in long key); + void FinishAddingArticleKeys(); + +}; +