45 lines
3.9 KiB
C++
45 lines
3.9 KiB
C++
/*
|
|
* Purpose: Sample application for demonstrating and testing the wxWindows email support
|
|
* Author: Frank Buß
|
|
* Created: 2002
|
|
*/
|
|
|
|
#ifndef SNDDLG_H
|
|
#define SNDDLG_H
|
|
|
|
#include <wx/wx.h>
|
|
#include <wx/listctrl.h>
|
|
|
|
#include "smtp.h"
|
|
|
|
class WinoDialog;
|
|
|
|
class SendDialog : public wxDialog, public wxSMTPListener
|
|
{
|
|
public:
|
|
SendDialog(WinoDialog& winoDialog);
|
|
|
|
virtual ~SendDialog();
|
|
|
|
void OnSocketError(int errorCode);
|
|
|
|
void OnRecipientAdded(const wxString& address, int errorCode);
|
|
|
|
void OnDataSent(int errorCode);
|
|
|
|
private:
|
|
wxSMTP* m_pSMTP;
|
|
wxEmailMessage* m_pMessage;
|
|
|
|
wxStaticText* m_pStatusText;
|
|
wxStaticText* m_pEmailCountText;
|
|
wxStaticText* m_pEmailSuccessText;
|
|
wxTextCtrl* m_pLogTextCtrl;
|
|
|
|
size_t m_successCount;
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
};
|
|
|
|
|
|
#endif |