/* Created with PageBuilder version 4.04 on Sat Jun  2 00:18:58 2007 */

#include "AsExtern.h"

#if RomPagerServer



/* ************************************* */
/* *    Built from "html\email.htm"    * */
/* ************************************* */

extern rpObjectDescription Pghtml_email;

static char Pghtml_email_Item_1[] =
	C_oHTML_oHEAD_oTITLE "EMAIL Configuration " C_xTITLE_xHEAD_oBODY C_oP
	C_oCENTER C_oH2 "EMAIL Configuration " C_xH2
	C_xCENTER;

static char Pghtml_email_Item_3[] =
	C_oP C_xP C_oTABLE_BORDER "0>\n"
	C_oTR C_oTH_ALIGN_LEFT ">Enter POP3 address: " C_xTH
	C_oTD;

extern char *emailConfig_GetPop3Addr(void);
extern void emailConfig_SetPop3Addr(char *theValuePtr);
static rpTextFormItem Pghtml_email_Item_4 = {
	"pop3Addr",
	(void *) emailConfig_GetPop3Addr,
	(void *) emailConfig_SetPop3Addr,
	eRpVarType_Function,
	eRpVarType_Function,
	eRpTextType_ASCII,
	20,
	79
};

static char Pghtml_email_Item_5[] =
	C_xTD C_oTD C_oFONT_SIZE "\"2\"> " C_oI "\n"
	"Mail server IP address which the client reads mail from.\n"
	C_xI " " C_xFONT " " C_xTD C_xTR C_oTR C_oTH_ALIGN_LEFT ">Enter SMTP "
	"address: " C_xTH
	C_oTD;

extern char *emailConfig_GetSmtpAddr(void);
extern void emailConfig_SetSmtpAddr(char *theValuePtr);
static rpTextFormItem Pghtml_email_Item_6 = {
	"smtpAddr",
	(void *) emailConfig_GetSmtpAddr,
	(void *) emailConfig_SetSmtpAddr,
	eRpVarType_Function,
	eRpVarType_Function,
	eRpTextType_ASCII,
	20,
	79
};

static char Pghtml_email_Item_7[] =
	C_xTD C_oTD C_oFONT_SIZE "\"2\"> " C_oI "\n"
	"SMTP Server IP Address for sending mail.\n"
	C_xI " " C_xFONT " " C_xTD C_xTR C_oTR C_oTH_ALIGN_LEFT ">Enter SMTP "
	"Port: " C_xTH
	C_oTD;

extern Unsigned16 emailConfig_GetSmtpPort(void);
extern void emailConfig_SetSmtpPort(Unsigned16 theValue);
static rpTextFormItem Pghtml_email_Item_8 = {
	"smtpPort",
	(void *) emailConfig_GetSmtpPort,
	(void *) emailConfig_SetSmtpPort,
	eRpVarType_Function,
	eRpVarType_Function,
	eRpTextType_Unsigned16,
	20,
	20
};

static char Pghtml_email_Item_9[] =
	C_xTD C_oTD C_oFONT_SIZE "\"2\"> " C_oI "\n"
	"SMTP Server port to connect for sending mail.\n"
	C_xI " " C_xFONT " " C_xTD C_xTR C_oTR C_oTH_ALIGN_LEFT ">Enter User"
	C_S_Name C_xTH
	C_oTD;

extern char *emailConfig_GetSmtpUser(void);
extern void emailConfig_SetSmtpUser(char *theValuePtr);
static rpTextFormItem Pghtml_email_Item_10 = {
	"smtpUser",
	(void *) emailConfig_GetSmtpUser,
	(void *) emailConfig_SetSmtpUser,
	eRpVarType_Function,
	eRpVarType_Function,
	eRpTextType_ASCII,
	20,
	20
};

static char Pghtml_email_Item_11[] =
	C_xTD C_oTD C_oFONT_SIZE "\"2\"> " C_oI "\n"
	"Username to login to the server. This is required only if you set the "
	"authentication.\n"
	C_xI " " C_xFONT " " C_xTD C_xTR C_oTR C_oTH_ALIGN_LEFT ">Enter "
	"Password: " C_xTH
	C_oTD;

extern char *emailConfig_GetSmtpPassword(void);
extern void emailConfig_SetSmtpPassword(char *theValuePtr);
static rpTextFormItem Pghtml_email_Item_12 = {
	"smtpPassword",
	(void *) emailConfig_GetSmtpPassword,
	(void *) emailConfig_SetSmtpPassword,
	eRpVarType_Function,
	eRpVarType_Function,
	eRpTextType_ASCII,
	20,
	20
};

static char Pghtml_email_Item_13[] =
	C_xTD C_oTD C_oFONT_SIZE "\"2\"> " C_oI "\n"
	"Password to login to the server. This is required only if you set the "
	"authentication.\n"
	C_xI " " C_xFONT " " C_xTD C_xTR C_oTR C_oTH_ALIGN_LEFT ">Enter SMTP "
	"Server URI: " C_xTH
	C_oTD;

extern char *emailConfig_GetSmtpServerUri(void);
extern void emailConfig_SetSmtpServerUri(char *theValuePtr);
static rpTextFormItem Pghtml_email_Item_14 = {
	"smtpServerUri",
	(void *) emailConfig_GetSmtpServerUri,
	(void *) emailConfig_SetSmtpServerUri,
	eRpVarType_Function,
	eRpVarType_Function,
	eRpTextType_ASCII,
	20,
	20
};

static char Pghtml_email_Item_15[] =
	C_xTD C_oTD C_oFONT_SIZE "\"2\"> " C_oI "\n"
	"(Optional) Used in Digest MD5\n"
	C_xI " " C_xFONT " " C_xTD C_xTR C_oTR C_oTH_ALIGN_LEFT ">"
	"Authentication Type: " C_xTH
	C_oTD;

extern rpOneOfSeveral emailConfig_GetSmtpAuth(void);
extern void emailConfig_SetSmtpAuth(rpOneOfSeveral theValue);
extern rpOption_OneSelect Pghtml_email_Item_16_Option_1;
static rpFixedSingleSelectFormItem Pghtml_email_Item_16 = {
	"auth",
	&Pghtml_email_Item_16_Option_1,
	(void *) emailConfig_GetSmtpAuth,
	(void *) emailConfig_SetSmtpAuth,
	eRpVarType_Function,
	eRpVarType_Function,
	1
};

extern rpOption_OneSelect Pghtml_email_Item_16_Option_2;
rpOption_OneSelect Pghtml_email_Item_16_Option_1 = {
	&Pghtml_email_Item_16_Option_2,
	"None",
	0
};

extern rpOption_OneSelect Pghtml_email_Item_16_Option_3;
rpOption_OneSelect Pghtml_email_Item_16_Option_2 = {
	&Pghtml_email_Item_16_Option_3,
	"Digest MD5",
	1
};

extern rpOption_OneSelect Pghtml_email_Item_16_Option_4;
rpOption_OneSelect Pghtml_email_Item_16_Option_3 = {
	&Pghtml_email_Item_16_Option_4,
	"CRAM MD5",
	2
};

extern rpOption_OneSelect Pghtml_email_Item_16_Option_5;
rpOption_OneSelect Pghtml_email_Item_16_Option_4 = {
	&Pghtml_email_Item_16_Option_5,
	"LOGIN",
	3
};

extern rpOption_OneSelect Pghtml_email_Item_16_Option_6;
rpOption_OneSelect Pghtml_email_Item_16_Option_5 = {
	&Pghtml_email_Item_16_Option_6,
	"PLAIN",
	4
};

rpOption_OneSelect Pghtml_email_Item_16_Option_6 = {
	(rpOption_OneSelectPtr) 0,
	"Any",
	5
};

static char Pghtml_email_Item_17[] =
	C_xTD C_oTD C_oFONT_SIZE "\"2\"> " C_oI "\n"
	"Authentication type \'Any\' will use one among Digest MD5, CRAM MD5, "
	"LOGIN or PLAIN.\n"
	C_xI " " C_xFONT " " C_xTD C_oTR "\n"
	C_oTR "\n"
	C_oTD_ALIGN_RIGHT "> ";

static rpButtonFormItem Pghtml_email_Item_18 = {
	"Clear"
};

static char Pghtml_email_Item_19[] =
	C_xTD C_oTD_ALIGN_CENTER "> ";

static rpButtonFormItem Pghtml_email_Item_20 = {
	"Basic Test"
};

static char Pghtml_email_Item_21[] =
	C_xTD C_oTD_ALIGN_LEFT "> ";

static rpButtonFormItem Pghtml_email_Item_22 = {
	"Send Mail"
};

static char Pghtml_email_Item_23[] =
	C_xTD C_xTR C_xTABLE C_xFORM
	C_xBODY_xHTML;



static rpItem Pghtml_email_Form_1_Items[] = { 
	{ eRpItemType_FormAsciiText, (void *) &Pghtml_email_Item_4 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pghtml_email_Item_6 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pghtml_email_Item_8 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pghtml_email_Item_10 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pghtml_email_Item_12 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pghtml_email_Item_14 }, 
	{ eRpItemType_FormFixedSingleSelect, (void *) &Pghtml_email_Item_16 }, 
	{ eRpItemType_FormReset, (void *) &Pghtml_email_Item_18 }, 
	{ eRpItemType_FormSubmit, (void *) &Pghtml_email_Item_20 }, 
	{ eRpItemType_FormSubmit, (void *) &Pghtml_email_Item_22 }, 
	{ eRpItemType_LastItemInList } 
};

extern void emailConfig_submit(void *theTaskDataPtr, Signed16Ptr theIndexValuesPtr);
static rpObjectExtension Pghtml_email_Form_1_ObjectExtension = {
	emailConfig_submit,
	&Pghtml_email,
	(rpObjectDescriptionPtr) 0,
	0,
	kRpObjFlags_None
};

rpObjectDescription Pghtml_email_Form_1 = {
	"/Forms/html_email_1",
	Pghtml_email_Form_1_Items,
	&Pghtml_email_Form_1_ObjectExtension,
	(Unsigned32) 0,
	kRpPageAccess_Unprotected,
	eRpDataTypeForm,
	eRpObjectTypeDynamic
};

static rpItem Pghtml_email_Items[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pghtml_email_Item_1 }, 
	{ eRpItemType_FormHeader, (void *) &Pghtml_email_Form_1 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pghtml_email_Item_3 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pghtml_email_Item_4 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pghtml_email_Item_5 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pghtml_email_Item_6 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pghtml_email_Item_7 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pghtml_email_Item_8 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pghtml_email_Item_9 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pghtml_email_Item_10 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pghtml_email_Item_11 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pghtml_email_Item_12 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pghtml_email_Item_13 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pghtml_email_Item_14 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pghtml_email_Item_15 }, 
	{ eRpItemType_FormFixedSingleSelect, (void *) &Pghtml_email_Item_16 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pghtml_email_Item_17 }, 
	{ eRpItemType_FormReset, (void *) &Pghtml_email_Item_18 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pghtml_email_Item_19 }, 
	{ eRpItemType_FormSubmit, (void *) &Pghtml_email_Item_20 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pghtml_email_Item_21 }, 
	{ eRpItemType_FormSubmit, (void *) &Pghtml_email_Item_22 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pghtml_email_Item_23 }, 
	{ eRpItemType_LastItemInList } 
};


extern void emailConfig_init(void *theTaskDataPtr, Signed16Ptr theIndexValuesPtr);
static rpObjectExtension Pghtml_email_ObjectExtension = {
	emailConfig_init,
	(rpObjectDescriptionPtr) 0,
	(rpObjectDescriptionPtr) 0,
	0,
	kRpObjFlags_None
};

rpObjectDescription Pghtml_email = {
	"/email.htm",
	Pghtml_email_Items,
	&Pghtml_email_ObjectExtension,
	(Unsigned32) 0,
	kRpPageAccess_Unprotected,
	eRpDataTypeHtml,
	eRpObjectTypeDynamic
};

#endif	/* RomPagerServer */
