/usr/include/thunderbird/nsIMsgCopyService.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMsgCopyService.idl
*/
#ifndef __gen_nsIMsgCopyService_h__
#define __gen_nsIMsgCopyService_h__
#ifndef __gen_nsrootidl_h__
#include "nsrootidl.h"
#endif
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIMsgFolder_h__
#include "nsIMsgFolder.h"
#endif
#ifndef __gen_nsIMsgCopyServiceListener_h__
#include "nsIMsgCopyServiceListener.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIMsgDBHdr; /* forward declaration */
class nsIMsgWindow; /* forward declaration */
class nsIFile; /* forward declaration */
class nsIArray; /* forward declaration */
/* starting interface: nsIMsgCopyService */
#define NS_IMSGCOPYSERVICE_IID_STR "f21e428b-73c5-4607-993b-d37325b33722"
#define NS_IMSGCOPYSERVICE_IID \
{0xf21e428b, 0x73c5, 0x4607, \
{ 0x99, 0x3b, 0xd3, 0x73, 0x25, 0xb3, 0x37, 0x22 }}
class NS_NO_VTABLE nsIMsgCopyService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGCOPYSERVICE_IID)
/* void CopyMessages (in nsIMsgFolder srcFolder, in nsIArray messages, in nsIMsgFolder dstFolder, in boolean isMove, in nsIMsgCopyServiceListener listener, in nsIMsgWindow msgWindow, in boolean allowUndo); */
NS_IMETHOD CopyMessages(nsIMsgFolder *srcFolder, nsIArray *messages, nsIMsgFolder *dstFolder, bool isMove, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow, bool allowUndo) = 0;
/* void CopyFolders (in nsIArray folders, in nsIMsgFolder dstFolder, in boolean isMove, in nsIMsgCopyServiceListener listener, in nsIMsgWindow msgWindow); */
NS_IMETHOD CopyFolders(nsIArray *folders, nsIMsgFolder *dstFolder, bool isMove, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow) = 0;
/* void CopyFileMessage (in nsIFile aFile, in nsIMsgFolder dstFolder, in nsIMsgDBHdr msgToReplace, in boolean isDraftOrTemplate, in unsigned long aMsgFlags, in ACString aMsgKeywords, in nsIMsgCopyServiceListener listener, in nsIMsgWindow msgWindow); */
NS_IMETHOD CopyFileMessage(nsIFile *aFile, nsIMsgFolder *dstFolder, nsIMsgDBHdr *msgToReplace, bool isDraftOrTemplate, uint32_t aMsgFlags, const nsACString & aMsgKeywords, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow) = 0;
/* void NotifyCompletion (in nsISupports aSupport, in nsIMsgFolder dstFolder, in nsresult result); */
NS_IMETHOD NotifyCompletion(nsISupports *aSupport, nsIMsgFolder *dstFolder, nsresult result) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgCopyService, NS_IMSGCOPYSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGCOPYSERVICE \
NS_IMETHOD CopyMessages(nsIMsgFolder *srcFolder, nsIArray *messages, nsIMsgFolder *dstFolder, bool isMove, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow, bool allowUndo) override; \
NS_IMETHOD CopyFolders(nsIArray *folders, nsIMsgFolder *dstFolder, bool isMove, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow) override; \
NS_IMETHOD CopyFileMessage(nsIFile *aFile, nsIMsgFolder *dstFolder, nsIMsgDBHdr *msgToReplace, bool isDraftOrTemplate, uint32_t aMsgFlags, const nsACString & aMsgKeywords, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow) override; \
NS_IMETHOD NotifyCompletion(nsISupports *aSupport, nsIMsgFolder *dstFolder, nsresult result) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGCOPYSERVICE(_to) \
NS_IMETHOD CopyMessages(nsIMsgFolder *srcFolder, nsIArray *messages, nsIMsgFolder *dstFolder, bool isMove, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow, bool allowUndo) override { return _to CopyMessages(srcFolder, messages, dstFolder, isMove, listener, msgWindow, allowUndo); } \
NS_IMETHOD CopyFolders(nsIArray *folders, nsIMsgFolder *dstFolder, bool isMove, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow) override { return _to CopyFolders(folders, dstFolder, isMove, listener, msgWindow); } \
NS_IMETHOD CopyFileMessage(nsIFile *aFile, nsIMsgFolder *dstFolder, nsIMsgDBHdr *msgToReplace, bool isDraftOrTemplate, uint32_t aMsgFlags, const nsACString & aMsgKeywords, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow) override { return _to CopyFileMessage(aFile, dstFolder, msgToReplace, isDraftOrTemplate, aMsgFlags, aMsgKeywords, listener, msgWindow); } \
NS_IMETHOD NotifyCompletion(nsISupports *aSupport, nsIMsgFolder *dstFolder, nsresult result) override { return _to NotifyCompletion(aSupport, dstFolder, result); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGCOPYSERVICE(_to) \
NS_IMETHOD CopyMessages(nsIMsgFolder *srcFolder, nsIArray *messages, nsIMsgFolder *dstFolder, bool isMove, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow, bool allowUndo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyMessages(srcFolder, messages, dstFolder, isMove, listener, msgWindow, allowUndo); } \
NS_IMETHOD CopyFolders(nsIArray *folders, nsIMsgFolder *dstFolder, bool isMove, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyFolders(folders, dstFolder, isMove, listener, msgWindow); } \
NS_IMETHOD CopyFileMessage(nsIFile *aFile, nsIMsgFolder *dstFolder, nsIMsgDBHdr *msgToReplace, bool isDraftOrTemplate, uint32_t aMsgFlags, const nsACString & aMsgKeywords, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyFileMessage(aFile, dstFolder, msgToReplace, isDraftOrTemplate, aMsgFlags, aMsgKeywords, listener, msgWindow); } \
NS_IMETHOD NotifyCompletion(nsISupports *aSupport, nsIMsgFolder *dstFolder, nsresult result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyCompletion(aSupport, dstFolder, result); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMsgCopyService : public nsIMsgCopyService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGCOPYSERVICE
nsMsgCopyService();
private:
~nsMsgCopyService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsMsgCopyService, nsIMsgCopyService)
nsMsgCopyService::nsMsgCopyService()
{
/* member initializers and constructor code */
}
nsMsgCopyService::~nsMsgCopyService()
{
/* destructor code */
}
/* void CopyMessages (in nsIMsgFolder srcFolder, in nsIArray messages, in nsIMsgFolder dstFolder, in boolean isMove, in nsIMsgCopyServiceListener listener, in nsIMsgWindow msgWindow, in boolean allowUndo); */
NS_IMETHODIMP nsMsgCopyService::CopyMessages(nsIMsgFolder *srcFolder, nsIArray *messages, nsIMsgFolder *dstFolder, bool isMove, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow, bool allowUndo)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void CopyFolders (in nsIArray folders, in nsIMsgFolder dstFolder, in boolean isMove, in nsIMsgCopyServiceListener listener, in nsIMsgWindow msgWindow); */
NS_IMETHODIMP nsMsgCopyService::CopyFolders(nsIArray *folders, nsIMsgFolder *dstFolder, bool isMove, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void CopyFileMessage (in nsIFile aFile, in nsIMsgFolder dstFolder, in nsIMsgDBHdr msgToReplace, in boolean isDraftOrTemplate, in unsigned long aMsgFlags, in ACString aMsgKeywords, in nsIMsgCopyServiceListener listener, in nsIMsgWindow msgWindow); */
NS_IMETHODIMP nsMsgCopyService::CopyFileMessage(nsIFile *aFile, nsIMsgFolder *dstFolder, nsIMsgDBHdr *msgToReplace, bool isDraftOrTemplate, uint32_t aMsgFlags, const nsACString & aMsgKeywords, nsIMsgCopyServiceListener *listener, nsIMsgWindow *msgWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void NotifyCompletion (in nsISupports aSupport, in nsIMsgFolder dstFolder, in nsresult result); */
NS_IMETHODIMP nsMsgCopyService::NotifyCompletion(nsISupports *aSupport, nsIMsgFolder *dstFolder, nsresult result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIMsgCopyService_h__ */
|