From 2cdfa89ee550dfa21e22e81faae2abbc98935bc4 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Thu, 1 Apr 1999 01:07:58 +0000 Subject: [PATCH] new interface nsIMsgUriUrl for the GetURI method. This interface will be supported by both imap and mailbox urls. --- mailnews/base/public/nsIMsgMailNewsUrl.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/mailnews/base/public/nsIMsgMailNewsUrl.h b/mailnews/base/public/nsIMsgMailNewsUrl.h index 25d00a1404c6..935961765c51 100644 --- a/mailnews/base/public/nsIMsgMailNewsUrl.h +++ b/mailnews/base/public/nsIMsgMailNewsUrl.h @@ -70,4 +70,24 @@ public: NS_IMETHOD GetUrlState(PRBool *runningUrl) = 0; }; +////////////////////////////////////////////////////////////////////////////////// +// This is a very small interface which I'm grouping with the mailnewsUrl interface. +// Several url types (mailbox, imap, nntp) have urls which can be have URI +// equivalents. We want to provide the app the ability to get the URI for the +// url. This URI to URL mapping doesn't exist for all mailnews urls...hence I'm +// grouping it into a separate interface... +////////////////////////////////////////////////////////////////////////////////// + +/* 02338DD2-E7B9-11d2-8070-006008128C4E */ + +#define NS_IMSGURIURL_IID \ +{ 0x2338dd2, 0xe7b9, 0x11d2, \ + { 0x80, 0x70, 0x0, 0x60, 0x8, 0x12, 0x8c, 0x4e } } + +class nsIMsgUriUrl : public nsISupports +{ + static const nsIID& GetIID() { static nsIID iid = NS_IMSGURIURL_IID; return iid; } + NS_IMETHOD GetURI(char ** aURI) = 0; +}; + #endif /* nsIMsgMailNewsUrl_h___ */