inc/mpsettingsmanager.h
branchGCC_SURGE
changeset 44 eff9df3d9c98
parent 41 ea59c434026a
equal deleted inserted replaced
30:b95ddb5a0d10 44:eff9df3d9c98
    42     static MpSettingsManager *instance();
    42     static MpSettingsManager *instance();
    43     static bool firstStartup();
    43     static bool firstStartup();
    44     static bool shuffle();
    44     static bool shuffle();
    45     static bool repeat();
    45     static bool repeat();
    46     static int preset();
    46     static int preset();
       
    47     static bool inspireMe();
       
    48     static bool songDetailsGb();
       
    49     static bool showMtpInfo();
       
    50     static QString mtpInfoUrl();
    47 
    51 
    48 public slots:
    52 public slots:
    49     void valueChanged(const XQSettingsKey& key, const QVariant& value);
    53     void valueChanged(const XQSettingsKey& key, const QVariant& value);
    50     static void setShuffle(bool shuffle);
    54     static void setShuffle(bool shuffle);
    51     static void setRepeat(bool repeat);
    55     static void setRepeat(bool repeat);
    52     static void setPreset(int preset);
    56     static void setPreset(int preset);
       
    57     static void setInspireMe(bool inspireme);
       
    58     static void setSongDetailsGb(bool songdetails);
       
    59     static void stopShowingMtpInfo();
    53         
    60         
    54 signals:
    61 signals:
    55     void shuffleChanged(bool shuffle);
    62     void shuffleChanged(bool shuffle);
    56     void repeatChanged(bool repeat);
    63     void repeatChanged(bool repeat);
    57     void presetChanged(int preset);
    64     void presetChanged(int preset);
       
    65     void InspireMeChanged(bool inspireme);
       
    66     void SongDetailsGbChanged(bool songdetails);
    58     
    67     
    59 private:
    68 private:
    60     Q_DISABLE_COPY(MpSettingsManager)
    69     Q_DISABLE_COPY(MpSettingsManager)
    61     XQSettingsManager* mSettingsManager;
    70     XQSettingsManager* mSettingsManager;
    62     bool mFirstStartup;
    71     bool        mFirstStartup;
    63     bool mShuffle;
    72     bool        mShuffle;
    64     bool mRepeat;
    73     bool        mRepeat;
    65     int  mPreset;
    74     int         mPreset;
       
    75     bool        mInspireMe;
       
    76     bool        mSongDetailsGb;
       
    77     bool        mShowMtpInfo;
       
    78     QString     mMtpInfoUrl;
    66 };
    79 };
    67 
    80 
    68 #endif    // MPSETTINGSMANAGER_H
    81 #endif    // MPSETTINGSMANAGER_H