mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-25 14:07:15 +02:00
76 lines
1.8 KiB
C++
76 lines
1.8 KiB
C++
// rdalsaconfig.h
|
|
//
|
|
// A Qt-based application to display info about ALSA cards.
|
|
//
|
|
// (C) Copyright 2009-2019 Fred Gleason <fredg@paravelsystems.com>
|
|
//
|
|
// This program is free software; you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License version 2 as
|
|
// published by the Free Software Foundation.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public
|
|
// License along with this program; if not, write to the Free Software
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
//
|
|
|
|
#ifndef RDALSACONFIG_H
|
|
#define RDALSACONFIG_H
|
|
|
|
#include <qlistview.h>
|
|
#include <qlabel.h>
|
|
#include <qpushbutton.h>
|
|
|
|
#include <rd.h>
|
|
#include <rdwidget.h>
|
|
|
|
#include "rdalsamodel.h"
|
|
|
|
#define RDALSACONFIG_USAGE "[options]\n"
|
|
|
|
void StopDaemons();
|
|
void StartDaemons();
|
|
|
|
class MainWidget : public RDWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
MainWidget(RDConfig *c,QWidget *parent=0);
|
|
QSize sizeHint() const;
|
|
QSizePolicy sizePolicy() const;
|
|
|
|
private slots:
|
|
void saveData();
|
|
void cancelData();
|
|
|
|
protected:
|
|
void resizeEvent(QResizeEvent *e);
|
|
void closeEvent(QCloseEvent *e);
|
|
|
|
private:
|
|
void LoadConfig(const QString &filename);
|
|
void SaveConfig(const QString &filename) const;
|
|
QLabel *alsa_system_label;
|
|
QLabel *alsa_description_label;
|
|
QListView *alsa_system_list;
|
|
RDAlsaModel *alsa_system_model;
|
|
QStringList alsa_other_lines;
|
|
QPushButton *alsa_save_button;
|
|
QPushButton *alsa_cancel_button;
|
|
};
|
|
|
|
|
|
class Autogen : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Autogen();
|
|
};
|
|
|
|
|
|
#endif // RDALSACONFIG_H
|