// Meteorsis_HTTP_sample_VC6Dlg.h : header file
//
#include <afxinet.h>

#if !defined(AFX_METEORSIS_HTTP_SAMPLE_VC6DLG_H__1B586964_63CF_4EA2_A944_F0F0351D4696__INCLUDED_)
#define AFX_METEORSIS_HTTP_SAMPLE_VC6DLG_H__1B586964_63CF_4EA2_A944_F0F0351D4696__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

///////////////////////////////////////////////////////////////////////////
///// HTTP API CODE

//f_getsmsdstatus
const int SMSD_STATUS_COLLECT_FAIL = 1; //MISOP is failed to collect the upload of sms
const int SMSD_STATUS_COLLECT_SUCCESS = 2; //MISOP is successful to collect the upload of sms
const int SMSD_STATUS_SCHEDULING = 3; //sms is in scheduling
const int SMSD_STATUS_PROCESSING = 4; //sms is being delivered and processed by MISOP
const int SMSD_STATUS_STORED = 19; //smsc provider has handled the delivery but message does not reach the recipient. It will be re-sent within 24 - 48 hours
const int SMSD_STATUS_EXPIRED = 20; //smsc provider has handled the delivery but message does not reach the recipient. After 24 - 48 hours retry period, it is still not successful, message is expired
const int SMSD_STATUS_UNDELIVERABLE = 21; //sms is failed to reach the recipient, e.g. no subscriber for this number or message is barred etc..
const int SMSD_STATUS_DELIVERED = 22; //sms is successful to reach the recipient, get the delivery acknowledgement from handset, and transfer the receipt to our MISOP
const int SMSD_STATUS_OUT_OF_CREDIT = 24; //sms cannot be sent as there is no credit remained in the account

//HTTP API Error Code
const int CODE_SYSTEM_ERROR = 1; //unexpected system error
const int CODE_LOGIN_FAIL = 2; //login failed
const int CODE_ACCOUNT_DISABLE = 3; //account is disabled
const int CODE_SOAP_FORMAT_ERROR = 4; //SOAP format does not pass the schema
const int CODE_SOAP_INVALID_DATE_OF_SCHEDULING = 5; //scheduling date must be within 1 year
const int CODE_SOAP_INVALID_SMS_CONTENT_LENGTH = 6; //sms content length must be within 70 and 160 characters for unicode message and english message respectively
const int CODE_SOAP_INVALID_SMS_EFFECT = 7; //not used in http api
const int CODE_SOAP_INVALID_SENDERID = 8; //senderid length must be within 11 alphanumeric charactes or 15 numeric digits
const int CODE_SMSDID_NOT_EXIST = 9; //smsd id does not exist
const int CODE_COUNTRYID_NOT_EXIST = 11; //Country ID does not exist
const int CODE_OUT_OF_CREDIT = 15; //You do not have enough sms credits to send this batch of messages
const int CODE_URL_FORMAT_ERROR_INVALID_PARAMETES_NUMBERS = 240; //URL format error: invalid total number of parameters
const int CODE_URL_FORMAT_ERROR_INVALID_CONTENT = 241; //URL format error: invalid total number of parameters
const int CODE_URL_FORMAT_ERROR_INVALID_LANGENG = 242; //URL format error: invalid total number of parameters
const int CODE_URL_FORMAT_ERROR_INVALID_RECIPIENT = 243; //URL format error: invalid total number of parameters
const int CODE_URL_FORMAT_ERROR_INVALID_DOS = 244; //URL format error: invalid total number of parameters
const int CODE_URL_FORMAT_ERROR_INVALID_SENDERID = 245; //URL format error: invalid total number of parameters

///// END OF HTTP API CODE
///////////////////////////////////////////////////////////////////////////
    

/////////////////////////////////////////////////////////////////////////////
// CMeteors_HTTP_sample_VC6Dlg dialog

class CMeteorsis_HTTP_sample_VC6Dlg : public CDialog
{
// Construction
public:
	CMeteorsis_HTTP_sample_VC6Dlg(CWnd* pParent = NULL);	// standard constructor
	// Dialog Data
	//{{AFX_DATA(CMeteors_HTTP_sample_VC6Dlg)
	enum { IDD = IDD_METEORSIS_HTTP_SAMPLE_VC6_DIALOG };
	CString	m_txtusername;
	CString	m_txtpassword;
	CString	m_txtcontent;
	CString	m_txtsendsmsres;
	CString	m_txtgetsmsdstatusres;
	CString	m_txtgetusercreditres;
	CString m_txtgetserverqueueres;
	CString	m_txtlangeng;
	CString	m_txtdos;
	CString	m_txtsenderid;
	CString	m_txtsmsdid;
	CString	m_txtrecipient;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMeteorsis_HTTP_sample_VC6Dlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMeteorsis_HTTP_sample_VC6Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButton1();
	afx_msg void OnButton2();
	afx_msg void OnButton3();
	afx_msg CString Text2Unicode(CString msg);
	afx_msg void OnButton4();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_METEORSIS_HTTP_SAMPLE_VC6DLG_H__1B586964_63CF_4EA2_A944_F0F0351D4696__INCLUDED_)
