Blame view

app/gui/oven_control/soundplayer.h 482 Bytes
2097d305c   김태훈   소리 재생 기능 추가
1
2
3
4
5
6
7
8
9
10
11
12
  #ifndef SOUNDPLAYER_H
  #define SOUNDPLAYER_H
  
  #include <QObject>
  #include <QSound>
  #include <QMap>
  
  class SoundPlayer : public QObject
  {
      Q_OBJECT
  public:
      static void play(const QString &filename);
337d4f1a3   김태훈   음원 추가
13
14
15
16
17
      static void playClick();
      static void playStart();
      static void playStop();
      static void playError1();
      static void playError2();
2097d305c   김태훈   소리 재생 기능 추가
18
19
20
21
22
23
24
25
26
27
28
29
  
  signals:
  
  public slots:
  
  private:
      static QMap<QString, QSound *> map;
      static QSound *current;
  
  };
  
  #endif // SOUNDPLAYER_H