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; }
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); }
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); }
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 }
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 }