MuseScore/mscore/profile.h
2012-05-26 14:49:10 +02:00

53 lines
1.7 KiB
C++

//=============================================================================
// MuseScore
// Linux Music Score Editor
// $Id:$
//
// Copyright (C) 2011 Werner Schweer and others
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2.
//
// 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 __PROFILE_H__
#define __PROFILE_H__
//---------------------------------------------------------
// Profile
//---------------------------------------------------------
class Profile {
QString _name;
QString _path;
bool _dirty;
public:
Profile() {}
QString path() const { return _path; }
void setPath(const QString& s) { _path = s; }
QString name() const { return _name; }
void setName(const QString& s) { _name = s; }
bool dirty() const { return _dirty; }
void setDirty(bool v) { _dirty = v; }
void save();
void write();
void read(QDomElement);
void read();
static QList<Profile*>& profiles();
static Profile* createNewProfile(const QString& name);
};
extern Profile* profile;
extern void initProfile();
#endif