Ticket #3910: libmyth-mythcontext_globalSettings-02092007.diff

File libmyth-mythcontext_globalSettings-02092007.diff, 1.2 KB (added by Matthew Wire <devel@…>, 19 years ago)

Add saveGlobalSetting function to mythcontext

  • libs/libmyth/mythcontext.h

     
    333333
    334334    void SaveSetting(const QString &key, int newValue);
    335335    void SaveSetting(const QString &key, const QString &newValue);
     336    void SaveGlobalSetting(const QString &key, const QString &value);
    336337    QString GetSetting(const QString &key, const QString &defaultval = "");
    337338    bool SaveSettingOnHost(const QString &key, const QString &newValue,
    338339                           const QString &host);
  • libs/libmyth/mythcontext.cpp

     
    19641964    (void) SaveSettingOnHost(key, newValue, d->m_localhostname);
    19651965}
    19661966
     1967void MythContext::SaveGlobalSetting(const QString &key, const QString &newValue)
     1968{
     1969    (void) SaveSettingOnHost(key, newValue, NULL);
     1970}
     1971
    19671972bool MythContext::SaveSettingOnHost(const QString &key, const QString &newValue,
    19681973                                    const QString &host)
    19691974{