MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / readBootstrapSettings

Function readBootstrapSettings

qevercloud/generated/types.cpp:6366–6509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6364}
6365
6366void readBootstrapSettings(ThriftBinaryBufferReader& r, BootstrapSettings& s) {
6367 QString fname;
6368 ThriftFieldType::type fieldType;
6369 qint16 fieldId;
6370 bool serviceHost_isset = false;
6371 bool marketingUrl_isset = false;
6372 bool supportUrl_isset = false;
6373 bool accountEmailDomain_isset = false;
6374 r.readStructBegin(fname);
6375 while(true) {
6376 r.readFieldBegin(fname, fieldType, fieldId);
6377 if(fieldType == ThriftFieldType::T_STOP) break;
6378 if(fieldId == 1) {
6379 if(fieldType == ThriftFieldType::T_STRING) {
6380 serviceHost_isset = true;
6381 QString v;
6382 r.readString(v);
6383 s.serviceHost = v;
6384 } else {
6385 r.skip(fieldType);
6386 }
6387 } else
6388 if(fieldId == 2) {
6389 if(fieldType == ThriftFieldType::T_STRING) {
6390 marketingUrl_isset = true;
6391 QString v;
6392 r.readString(v);
6393 s.marketingUrl = v;
6394 } else {
6395 r.skip(fieldType);
6396 }
6397 } else
6398 if(fieldId == 3) {
6399 if(fieldType == ThriftFieldType::T_STRING) {
6400 supportUrl_isset = true;
6401 QString v;
6402 r.readString(v);
6403 s.supportUrl = v;
6404 } else {
6405 r.skip(fieldType);
6406 }
6407 } else
6408 if(fieldId == 4) {
6409 if(fieldType == ThriftFieldType::T_STRING) {
6410 accountEmailDomain_isset = true;
6411 QString v;
6412 r.readString(v);
6413 s.accountEmailDomain = v;
6414 } else {
6415 r.skip(fieldType);
6416 }
6417 } else
6418 if(fieldId == 5) {
6419 if(fieldType == ThriftFieldType::T_BOOL) {
6420 bool v;
6421 r.readBool(v);
6422 s.enableFacebookSharing = v;
6423 } else {

Callers 1

readBootstrapProfileFunction · 0.85

Calls 8

ThriftExceptionClass · 0.85
readStructBeginMethod · 0.80
readFieldBeginMethod · 0.80
readStringMethod · 0.80
skipMethod · 0.80
readBoolMethod · 0.80
readFieldEndMethod · 0.80
readStructEndMethod · 0.80

Tested by

no test coverage detected