/usr/include/k3bglobalsettings.h is in libk3b-dev 2.0.3-0ubuntu5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | /*
*
* Copyright (C) 2005-2009 Sebastian Trueg <trueg@k3b.org>
*
* This file is part of the K3b project.
* Copyright (C) 1998-2009 Sebastian Trueg <trueg@k3b.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* See the file "COPYING" for the exact licensing terms.
*/
#ifndef _K3B_GLOBAL_SETTINGS_H_
#define _K3B_GLOBAL_SETTINGS_H_
#include "k3b_export.h"
#include <QtCore/QString>
class KConfigGroup;
namespace K3b {
/**
* Some global settings used throughout K3b.
*/
class LIBK3B_EXPORT GlobalSettings
{
public:
GlobalSettings();
~GlobalSettings();
/**
* This method takes care of settings the config group
*/
void readSettings( const KConfigGroup& );
/**
* This method takes care of settings the config group
*/
void saveSettings( KConfigGroup );
bool ejectMedia() const { return m_eject; }
bool burnfree() const { return m_burnfree; }
bool overburn() const { return m_overburn; }
bool useManualBufferSize() const { return m_useManualBufferSize; }
int bufferSize() const { return m_bufferSize; }
/**
* If force is set to true K3b will continue in certain "unsafe" situations.
* The most common being a medium not suitable for the writer in terms of
* writing speed.
* Compare cdrecord's parameter -force and -ignsize
*/
bool force() const { return m_force; }
/**
* get the default K3b temp path to store image files
*/
QString defaultTempPath() const { return m_defaultTempPath; }
void setEjectMedia( bool b ) { m_eject = b; }
void setBurnfree( bool b ) { m_burnfree = b; }
void setOverburn( bool b ) { m_overburn = b; }
void setUseManualBufferSize( bool b ) { m_useManualBufferSize = b; }
void setBufferSize( int size ) { m_bufferSize = size; }
void setForce( bool b ) { m_force = b; }
void setDefaultTempPath( const QString& s ) { m_defaultTempPath = s; }
private:
// FIXME: d-pointer
bool m_eject;
bool m_burnfree;
bool m_overburn;
bool m_useManualBufferSize;
int m_bufferSize;
bool m_force;
QString m_defaultTempPath;
};
}
#endif
|