Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F27683951
message-events.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
2 KB
Subscribers
None
message-events.h
View Options
/* message-events.h - Definitions for out subclass of IExchExtMessageEvents
* Copyright (C) 2005, 2007 g10 Code GmbH
*
* This file is part of GpgOL.
*
* GpgOL is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* GpgOL is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MESSAGE_EVENTS_H
#define MESSAGE_EVENTS_H
/*
GpgolMessageEvents
The GpgolMessageEvents class implements the reaction of the exchange
message events.
*/
class
GpgolMessageEvents
:
public
IExchExtMessageEvents
{
/* Constructor. */
public
:
GpgolMessageEvents
(
GpgolExt
*
pParentInterface
);
virtual
~
GpgolMessageEvents
()
{}
/* Attributes. */
private
:
ULONG
m_lRef
;
ULONG
m_lContext
;
BOOL
m_bOnSubmitActive
;
GpgolExt
*
m_pExchExt
;
bool
m_bWriteFailed
;
bool
m_want_html
;
/* Encryption of HTML is desired. */
bool
m_processed
;
/* The message has been porcessed by us. */
bool
m_wasencrypted
;
/* The original message was encrypted. */
bool
m_gotinspector
;
/* We are working on a real inspector. */
public
:
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
LPVOID
*
ppvObj
);
inline
STDMETHODIMP_
(
ULONG
)
AddRef
(
void
)
{
++
m_lRef
;
return
m_lRef
;
};
inline
STDMETHODIMP_
(
ULONG
)
Release
(
void
)
{
ULONG
lCount
=
--
m_lRef
;
if
(
!
lCount
)
delete
this
;
return
lCount
;
};
STDMETHODIMP
OnRead
(
LPEXCHEXTCALLBACK
pEECB
);
STDMETHODIMP
OnReadComplete
(
LPEXCHEXTCALLBACK
pEECB
,
ULONG
lFlags
);
STDMETHODIMP
OnWrite
(
LPEXCHEXTCALLBACK
pEECB
);
STDMETHODIMP
OnWriteComplete
(
LPEXCHEXTCALLBACK
pEECB
,
ULONG
lFlags
);
STDMETHODIMP
OnCheckNames
(
LPEXCHEXTCALLBACK
pEECB
);
STDMETHODIMP
OnCheckNamesComplete
(
LPEXCHEXTCALLBACK
pEECB
,
ULONG
lFlags
);
STDMETHODIMP
OnSubmit
(
LPEXCHEXTCALLBACK
pEECB
);
STDMETHODIMP_
(
VOID
)
OnSubmitComplete
(
LPEXCHEXTCALLBACK
pEECB
,
ULONG
lFlags
);
inline
void
SetContext
(
ULONG
lContext
)
{
m_lContext
=
lContext
;
};
};
#endif
/*MESSAGE_EVENTS_H*/
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Sep 16, 12:03 PM (1 d, 8 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b6/b8/cc2826e98d27672540355a214d93
Attached To
rO GpgOL
Event Timeline
Log In to Comment