Sign in
Register
Home
Projects
Help
Search
:
Sonic Visualiser
Overview
Members
Activity
Publications
Roadmap
Issues
Wiki
Downloads
Repository
Code docs
SonicVisualiser
1.9
Main Page
Classes
Files
File List
File Members
main
Surveyer.h
Go to the documentation of this file.
1
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3
/*
4
Sonic Visualiser
5
An audio file viewer and annotation editor.
6
Centre for Digital Music, Queen Mary, University of London.
7
8
This program is free software; you can redistribute it and/or
9
modify it under the terms of the GNU General Public License as
10
published by the Free Software Foundation; either version 2 of the
11
License, or (at your option) any later version. See the file
12
COPYING included with this distribution for more information.
13
*/
14
15
#ifndef _SURVEYER_H_
16
#define _SURVEYER_H_
17
18
#include <QStringList>
19
#include <QString>
20
#include <QObject>
21
#include <QNetworkReply>
22
23
class
QNetworkAccessManager;
24
25
class
Surveyer
:
public
QObject
26
{
27
Q_OBJECT
28
29
public
:
30
struct
Config
{
31
QString
hostname
;
32
QString
testPath
;
33
QString
surveyPath
;
34
QString
countdownKey
;
35
int
countdownFrom
;
36
QString
title
;
37
QString
text
;
38
QString
acceptLabel
;
39
QString
rejectLabel
;
40
bool
includeSystemInfo
;
41
};
42
43
Surveyer
(
Config
config);
44
virtual
~Surveyer
();
45
46
protected
slots:
47
void
finished
();
48
void
error
(QNetworkReply::NetworkError);
49
50
private
:
51
Config
m_config
;
52
bool
m_httpFailed
;
53
QNetworkReply *
m_reply
;
54
QNetworkAccessManager *
m_nm
;
55
};
56
57
#endif
58
Surveyer
Definition:
Surveyer.h:25
Surveyer::Config
Definition:
Surveyer.h:30
Surveyer::Config::rejectLabel
QString rejectLabel
Definition:
Surveyer.h:39
Surveyer::m_httpFailed
bool m_httpFailed
Definition:
Surveyer.h:52
Surveyer::Config::acceptLabel
QString acceptLabel
Definition:
Surveyer.h:38
Surveyer::finished
void finished()
Definition:
Surveyer.cpp:85
Surveyer::error
void error(QNetworkReply::NetworkError)
Definition:
Surveyer.cpp:78
Surveyer::Config::countdownKey
QString countdownKey
Definition:
Surveyer.h:34
Surveyer::m_reply
QNetworkReply * m_reply
Definition:
Surveyer.h:53
Surveyer::Surveyer
Surveyer(Config config)
Definition:
Surveyer.cpp:32
Surveyer::Config::includeSystemInfo
bool includeSystemInfo
Definition:
Surveyer.h:40
Surveyer::m_nm
QNetworkAccessManager * m_nm
Definition:
Surveyer.h:54
Surveyer::m_config
Config m_config
Definition:
Surveyer.h:51
Surveyer::Config::title
QString title
Definition:
Surveyer.h:36
Surveyer::Config::text
QString text
Definition:
Surveyer.h:37
Surveyer::~Surveyer
virtual ~Surveyer()
Definition:
Surveyer.cpp:68
Surveyer::Config::testPath
QString testPath
Definition:
Surveyer.h:32
Surveyer::Config::countdownFrom
int countdownFrom
Definition:
Surveyer.h:35
Surveyer::Config::hostname
QString hostname
Definition:
Surveyer.h:31
Surveyer::Config::surveyPath
QString surveyPath
Definition:
Surveyer.h:33
Generated by
1.8.11
Loading...