Beispiel #1
0
WsAccount::WsAccount(UserProfile & userProfile )
	: WengoWebService(userProfile.getWengoAccount()),
	_userProfile(userProfile)
{
	Config & config = ConfigManager::getInstance().getCurrentConfig();

	//Setup the web service
//	setHostname(config.getWengoServerHostname());

#if 1
//	setHostname( "" );//VOXOX - CJC - 2009.07.05 Set server address
	setHostname( config.getApiHostname() );
	setServicePath( config.getVoxOxSyncWSPath() );
	setHttps(true);
	setPort(443);
#else
	setHostname( "" );
	setServicePath( "" );//VOXOX - CJC - 2009.07.05  Ser server address
	setHttps(false);
	setPort( 80 );
#endif

	setGet(true);	//true = POST in Curl lib.
	setWengoAuthentication(false);

	_userNetworkId = 0;
	_bDeleted	   = false;
}
Beispiel #2
0
WsInfo::WsInfo(WengoAccount * wengoAccount)
	: WengoWebService(wengoAccount) {

	Config & config = ConfigManager::getInstance().getCurrentConfig();

	_wengosCount = false;
	_smsCount = false;
	_activeMail = false;
	_unreadVoiceMail = false;
	_callForward = false;
	_landlineNumber = false;

	//setup info web service
	setHostname(config.getWengoServerHostname());
	//VOXOX CHANGE FIX PROBLEM WITH NOT RESPONDING WEBSERVICE
	//TODO: FIX THIS, WE NEED TO COMPILE OPENSSL TO BE ABLE TO SEND HTTPS TRUE, AND ALSO PASSWORD AND OTHERS SHOULD BE ENCRIPYED
	setGet(false);
	setServicePath(config.getWengoInfoPath());
	setWengoAuthentication(true);

#if 1
	setHttps(true);	//VOXOX - JRT - 2009.10.05 
	setPort(443);
#else
	setHttps(false);
	setPort(80);
#endif

	getCallForwardInfo(false);
}
Beispiel #3
0
WsCallForward::WsCallForward(WengoAccount * wengoAccount) : WengoWebService(wengoAccount) {

	Config & config = ConfigManager::getInstance().getCurrentConfig();

	//setup call forward service
	setHostname(config.getWengoServerHostname());
	setGet(true);
	setHttps(true);
	setServicePath(config.getWengoCirpackPath());
	setPort(443);
	setWengoAuthentication(true);
}
Beispiel #4
0
WsContactUpload::WsContactUpload(UserProfile & userProfile)
	: WengoWebService(userProfile.getWengoAccount()),
	_userProfile(userProfile) {

	Config & config = ConfigManager::getInstance().getCurrentConfig();

	//Setup the web service
	setHostname(config.getWengoServerHostname());
	setGet(true);
	setServicePath(config.getVoxoxContactUploadPath());
	setWengoAuthentication(false);

#if 1
	setHttps(true);	//VOXOX - JRT - 2009.10.05 
	setPort(443);
#else
	setHttps(false);
	setPort(80);
#endif
}
Beispiel #5
0
WsTranslation::WsTranslation(WengoAccount * wengoAccount)
	: WengoWebService(wengoAccount){

	_wsKey = "";
	_userKey = wengoAccount->getIdentity();
	Config & config = ConfigManager::getInstance().getCurrentConfig();
	//	_did = wengoAccount->getIdentity();
	//Setup SMS web service
	//setHostname(config.getApiHostname());
	setHostname(config.getTranslationApiHostname());
	setServicePath(config.getVoxOxTranslationWSPathKey());
	setGet(true);
	setWengoAuthentication(false);

//#if 1
//	setHttps(true);	//VOXOX - JRT - 2009.10.05 
//	setPort(443);
//#else
	setHttps(false);
	setPort(80);
//#endif
}