diff --git a/mailnews/news/public/Makefile.in b/mailnews/news/public/Makefile.in index e18d4dc5a63..5af55316137 100644 --- a/mailnews/news/public/Makefile.in +++ b/mailnews/news/public/Makefile.in @@ -23,6 +23,7 @@ srcdir = @srcdir@ include $(DEPTH)/config/autoconf.mk EXPORTS= \ + nsINNTPCategory.h \ nsINNTPNewsgroupList.h \ nsINNTPHost.h \ nsINNTPNewsgroup.h \ diff --git a/mailnews/news/public/nsINNTPCategory.h b/mailnews/news/public/nsINNTPCategory.h new file mode 100644 index 00000000000..dd6bfd7fef9 --- /dev/null +++ b/mailnews/news/public/nsINNTPCategory.h @@ -0,0 +1,37 @@ +/* + * DO NOT EDIT. THIS FILE IS GENERATED FROM nsINNTPCategory.idl + */ + +#ifndef __gen_nsINNTPCategory_h__ +#define __gen_nsINNTPCategory_h__ + +#include "nsISupports.h" /* interface nsISupports */ +#include "nsINNTPNewsgroup.h" /* interface nsINNTPNewsgroup */ +#include "nsIMsgGroupRecord.h" /* interface nsIMsgGroupRecord */ + + +/* starting interface nsINNTPCategory */ +class nsINNTPCategory : public nsISupports { + private: + void operator delete(void *); // NOT TO BE IMPLEMENTED + + public: + static const nsIID& IID() { + static nsIID iid = NS_INNTPCATEGORY_IID; + return iid; + } + + /* */ + NS_IMETHOD BuildCategoryTree(const nsINNTPNewsgroup *parent, const char *catName, const nsIMsgGroupRecord *group, PRInt16 depth, nsINNTPNewsgroup **_retval) = 0; + + /* */ + NS_IMETHOD AddToCategoryTree(const nsINNTPNewsgroup *parent, const char *groupName, const nsIMsgGroupRecord *group, nsINNTPNewsgroup **_retval) = 0; + + /* */ + NS_IMETHOD CloneIntoNewsFolder(nsINNTPNewsgroup **_retval) = 0; + + /* */ + NS_IMETHOD GetRootCategory(nsINNTPNewsgroup **_retval) = 0; +}; + +#endif /* __gen_nsINNTPCategory_h__ */ diff --git a/mailnews/news/public/nsINNTPCategory.idl b/mailnews/news/public/nsINNTPCategory.idl new file mode 100644 index 00000000000..277b47149f6 --- /dev/null +++ b/mailnews/news/public/nsINNTPCategory.idl @@ -0,0 +1,36 @@ +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * + * 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 "nsIMsgGroupRecord.idl" +#include "nsINNTPNewsgroup.idl" + +interface nsINNTPCategory : nsISupports { + nsINNTPNewsgroup BuildCategoryTree(in nsINNTPNewsgroup parent, + in string catName, + in nsIMsgGroupRecord group, + in short depth); + + nsINNTPNewsgroup AddToCategoryTree(in nsINNTPNewsgroup parent, + in string groupName, + in nsIMsgGroupRecord group); + + nsINNTPNewsgroup CloneIntoNewsFolder(); + nsINNTPNewsgroup GetRootCategory(); +}; +