/*
 * <insert one-line description of what the program does>
 * Copyright (c) <2008-2009>, Intel Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU Lesser General Public License,
 * version 2.1, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope 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, write to the Free Software Foundation, Inc., 
 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
 *
 */
#ifndef _GUI_RESOURCE_MANAGEMENT_S
#define _GUI_RESOURCE_MANAGEMENT_S
#include <GUI/macro.h>

#define RESOURCE_SPLIT '='

typedef struct RESOURCE_ITEM_MAP_S{
	char Name[RESOURCE_NAME_LEN];
	void* Value;
}RESOURCE_ITEM_MAP;

typedef struct RESOURCE_MANAGE_S
{
char T_strTCAgentTitle[RESOURCE_MAX_LEN];
char T_strPageServer[RESOURCE_MAX_LEN];

char T_strPageExpiration[RESOURCE_MAX_LEN];

char T_strPageDownload[RESOURCE_MAX_LEN];

char T_strBtnOK[RESOURCE_MAX_LEN];

char T_strBtnCancel[RESOURCE_MAX_LEN];

char T_strBtnApply[RESOURCE_MAX_LEN];

char T_strlabServer[RESOURCE_MAX_LEN];

char T_strlabProxy[RESOURCE_MAX_LEN];

char T_strlabProxyName[RESOURCE_MAX_LEN];

char T_strlabProxyPwd[RESOURCE_MAX_LEN];

char T_strgroupServer[RESOURCE_MAX_LEN];

char T_strgroupProxy[RESOURCE_MAX_LEN];

char T_strlabDays[RESOURCE_MAX_LEN];

char T_strlabTimes[RESOURCE_MAX_LEN];

char T_strgroupPrompt[RESOURCE_MAX_LEN];

char T_strlabDeviceID[RESOURCE_MAX_LEN];

char T_strlabHardwareID[RESOURCE_MAX_LEN];

char T_strlabExpiryDate[RESOURCE_MAX_LEN];

char T_strlabBootAble[RESOURCE_MAX_LEN];

char T_strlabNote[RESOURCE_MAX_LEN];

char T_strlabIP[RESOURCE_MAX_LEN];

char T_strlabGatewayIP[RESOURCE_MAX_LEN];

char T_strlabProxyIP[RESOURCE_MAX_LEN];

char T_strlabDNSIP[RESOURCE_MAX_LEN];

char T_strlabWINSIP[RESOURCE_MAX_LEN];

char T_strlabDownload[RESOURCE_MAX_LEN];

char T_strbtnDownload[RESOURCE_MAX_LEN];

char T_strlabPermanent[RESOURCE_MAX_LEN];

char T_strlabUnlimited[RESOURCE_MAX_LEN];

char T_strgroupDevice[RESOURCE_MAX_LEN];

char T_strgroupExpiry[RESOURCE_MAX_LEN];

char T_strgroupNetWork[RESOURCE_MAX_LEN];

char T_strgroupDownload[RESOURCE_MAX_LEN];

char T_strNotifyNormal[RESOURCE_MAX_LEN];

char T_strNotifyWarning[RESOURCE_MAX_LEN];

char T_strNotifyUrgency[RESOURCE_MAX_LEN];

char T_strNotifyDownloading[RESOURCE_MAX_LEN];

char T_strtipServerAddress[RESOURCE_MAX_LEN];

char T_strtipProxyAddress[RESOURCE_MAX_LEN];

char T_strtipProxyName[RESOURCE_MAX_LEN];

char T_strtipProxyPwd[RESOURCE_MAX_LEN];

char T_strtipDays[RESOURCE_MAX_LEN];

char T_strtipTwice[RESOURCE_MAX_LEN];

char T_strcheckBoxUseProxy[RESOURCE_MAX_LEN]; //add by xu jun

char M_strMsgTitleInfomation[RESOURCE_MAX_LEN];

char M_strMsgTitlePrompt[RESOURCE_MAX_LEN];

char M_strStartFail[RESOURCE_MAX_LEN];

char M_strDownloadedOnce[RESOURCE_MAX_LEN];

char M_strDownloadSuccess[RESOURCE_MAX_LEN];

char M_strDownloadFail[RESOURCE_MAX_LEN];

char M_strRefuseService[RESOURCE_MAX_LEN];

char M_strErrorConnect[RESOURCE_MAX_LEN];

char M_strUnable[RESOURCE_MAX_LEN];

char M_strData[RESOURCE_MAX_LEN];

char M_strException[RESOURCE_MAX_LEN];

char M_strUnknow[RESOURCE_MAX_LEN];

char M_strInvalid[RESOURCE_MAX_LEN];

char M_strLocal[RESOURCE_MAX_LEN];

char M_strIllegal[RESOURCE_MAX_LEN];

char M_strDayError[RESOURCE_MAX_LEN];

char M_strTimesError[RESOURCE_MAX_LEN];

char M_strProxyNameError[RESOURCE_MAX_LEN];

char M_strProxyPwdError[RESOURCE_MAX_LEN];

char M_strAutoDownloading[RESOURCE_MAX_LEN];

char M_strCantChange[RESOURCE_MAX_LEN];

char M_strNeedProxyAddress[RESOURCE_MAX_LEN];

char M_strNeedProxyName[RESOURCE_MAX_LEN];

char M_strNeedAddressAndName[RESOURCE_MAX_LEN];

char M_strSaveCertError[RESOURCE_MAX_LEN];

char M_strErrorCode[RESOURCE_MAX_LEN];

char W_strlabExpireIn[RESOURCE_MAX_LEN];

char W_strlabDays[RESOURCE_MAX_LEN];

char W_strlabTimes[RESOURCE_MAX_LEN];

char W_strlabWarning[RESOURCE_MAX_LEN];

char W_strgroupPrompt[RESOURCE_MAX_LEN];

char W_strlabWarningInfo[RESOURCE_MAX_LEN];

char W_strTitle[RESOURCE_MAX_LEN];

char P_strlabTitle[RESOURCE_MAX_LEN];

char P_strlabDownloading[RESOURCE_MAX_LEN];

char R_strlabTitle[RESOURCE_MAX_LEN];

char R_strgroupPrompt[RESOURCE_MAX_LEN];

char R_labInfo[RESOURCE_MAX_LEN];

char R_btnRebootNow[RESOURCE_MAX_LEN];

char R_labRemain[RESOURCE_MAX_LEN];

char R_labSecond[RESOURCE_MAX_LEN];

char M_strTimeout[RESOURCE_MAX_LEN];

char M_strHWIDInvalid [RESOURCE_MAX_LEN];

char M_strBootTickInvalid [RESOURCE_MAX_LEN];

char M_strDeviceStolen[RESOURCE_MAX_LEN];

char M_strSystem [RESOURCE_MAX_LEN];

char M_strTPM[RESOURCE_MAX_LEN];

char M_strTwoInstance[RESOURCE_MAX_LEN];
char M_strError[RESOURCE_MAX_LEN];

//liu.j add
char G_strTooltipText[RESOURCE_MAX_LEN];
/*
 * "Theft Deterrent %s\n"
		"Hardware ID:%s\n"
		"Expiration Date: %d-%d-%d\n"
		"Remaining Boots: %d";
 * */

char G_strDisableNoConnection[RESOURCE_MAX_LEN];
/*
 *  "Theft deterrent is not activated and server can not be connected."
 * */
char G_strNoConnection[RESOURCE_MAX_LEN];
/*
 * "Theft deterrent server can not be connected."
 * */
char G_strNotApproved[RESOURCE_MAX_LEN];
/*
 * "Theft deterrent account has not been approved."
 * */
char G_strPermanentCertificate[RESOURCE_MAX_LEN];
/*
 * "Theft deterrent is disabled with a permanent certificate.\n\n"
					"Hardware ID: %s"
 * */
char G_strStatusNotApproved[RESOURCE_MAX_LEN];
/*
 * "(Not activated)"
 */
char G_strStatusWarning[RESOURCE_MAX_LEN];//"(Warning)",
char G_strStatusNormal[RESOURCE_MAX_LEN];//"(Normal)"

char G_strBalloonText[RESOURCE_MAX_LEN];
/*
 * "Certificate has %d days to expire.\n"
		"Certificate has %d system boot(s) to expire.\n\n"
		"To avoid disruption of computer usage, please make sure your computer "
		"is properly connected to the network to be able to download certificates "
		"from the theft deterrent server.";
		*/
char G_strNoConnection2[RESOURCE_MAX_LEN];//"Can not connect with server.";
char G_strBubbleHeader[RESOURCE_MAX_LEN];
char G_strMenuItemAbout[RESOURCE_MAX_LEN];
char G_strMenuItemHelp[RESOURCE_MAX_LEN];
char G_strMenuItemSettings[RESOURCE_MAX_LEN];
char G_strMenuItemLogin[RESOURCE_MAX_LEN];
//liu.j add end

char G_strDownloadCASuceed[RESOURCE_MAX_LEN];
char A_strTitle [RESOURCE_MAX_LEN];
char A_strLicense [RESOURCE_MAX_LEN];

}RESOURCE_MANAGER;

enum THEFTCONTROL_RESOURCE{THEFTCONTROL_BINARY,THEFTCONTROL_CONFIG,THEFTCONTROL_PIXMAPS,THEFTCONTROL_LOG};

int ReadResources();
int getrespath(int resid, char* resvalue);

#endif
