void SocShare::postStatus(std::string _textStatus) { type = TEXT_STATUS; textStatus = _textStatus ==""?getDefaultStatus():_textStatus; post(); }
void SocShare::postPhoto(std::string path, std::string _textStatus) { type = PHOTO_STATUS; textStatus = _textStatus ==""?getDefaultStatus():_textStatus; photosVector.clear(); photosVector.push_back(path); post(); }
unsigned AddonBool::getGuiStatus(Window* window, unsigned id, bool& failed) const { auto* check = window->GetCtrl<ctrlCheck>(id + 2); if(!check) { failed = true; return getDefaultStatus(); } failed = false; return (check->GetCheck() ? 1 : 0); }
unsigned int AddonList::getGuiStatus(Window* window, unsigned int id, bool& failed) const { ctrlComboBox* combo = window->GetCtrl<ctrlComboBox>(id + 2); if(!combo) { failed = true; return getDefaultStatus(); } failed = false; return combo->GetSelection(); }
unsigned Addon::getGuiStatus(Window* /*window*/, unsigned /*id*/, bool& failed) const { failed = false; return getDefaultStatus(); }