blob: bb0783f78b841ebe10dedc2c448bf7b548c5b490 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#ifndef AUDIO_RESOURCE_H
#define AUDIO_RESOURCE_H
#include <QObject>
#include <QString>
#include <policy/resource.h>
namespace ResourcePolicy
{
class AudioResource: public QObject, public Resource
{
Q_OBJECT
public:
AudioResource(const QString &audioGroup = QString());
AudioResource(const AudioResource &other);
virtual ~AudioResource();
QString audioGroup() const;
bool audioGroupIsSet() const;
/**
* Set the audio group (classification)
* \param newGroup The new audio group to set.
*/
void setAudioGroup(const QString & newGroup);
quint32 processID() const;
/**
* Set the PID of the process which will render the audio. Use this if the
* audio renderer is in a separate process.
*/
void setProcessID(quint32 newPID);
QString streamTagName() const;
QString streamTagValue() const;
bool streamTagIsSet() const;
/**
* Set the tream tag to help policy to correctly identify the audio stream
* beloning to you
*/
void setStreamTag(const QString &name, const QString &value);
virtual ResourceType type() const;
private:
QString group;
quint32 pid;
QString streamName;
QString streamValue;
signals:
void audioPropertiesChanged(const QString &group, quint32 pid,
const QString &name, const QString &value);
};
}
#endif
|