export classes

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1097419
This commit is contained in:
Volker Lanz 2010-03-01 10:50:35 +00:00
parent fc753a2f14
commit 2d49f64f16
9 changed files with 27 additions and 11 deletions

View File

@ -21,6 +21,8 @@
#define DEVICE__H
#include "util/libpartitionmanagerexport.h"
#include <QString>
#include <QObject>
#include <qglobal.h>
@ -38,7 +40,7 @@ class LibPartedBackendBackend;
@see PartitionTable, Partition, LibParted::scanDevices()
@author vl@fidra.de
*/
class Device : public QObject
class LIBPARTITIONMANAGERPRIVATE_EXPORT Device : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(Device)

View File

@ -25,6 +25,8 @@
#include "core/partitionrole.h"
#include "core/partitiontable.h"
#include "util/libpartitionmanagerexport.h"
#include <QStringList>
#include <qglobal.h>
@ -66,7 +68,7 @@ class QString;
@see PartitionTable, Device, FileSystem
@author vl@fidra.de
*/
class Partition : public PartitionNode
class LIBPARTITIONMANAGERPRIVATE_EXPORT Partition : public PartitionNode
{
friend class PartitionTable;
friend class OperationStack;

View File

@ -21,6 +21,8 @@
#define PARTITIONROLE__H
#include "util/libpartitionmanagerexport.h"
#include <qglobal.h>
class QString;
@ -31,7 +33,7 @@ class QString;
@author vl@fidra.de
*/
class PartitionRole
class LIBPARTITIONMANAGERPRIVATE_EXPORT PartitionRole
{
public:
/** A Partition's role: What kind of Partition is it? */

View File

@ -21,6 +21,8 @@
#define PARTITIONTABLE__H
#include "util/libpartitionmanagerexport.h"
#include "core/partitionnode.h"
#include "core/partitionrole.h"
@ -39,7 +41,7 @@ class LibPartedBackend;
@author vl@fidra.de
*/
class PartitionTable : public PartitionNode
class LIBPARTITIONMANAGERPRIVATE_EXPORT PartitionTable : public PartitionNode
{
Q_DISABLE_COPY(PartitionTable)

View File

@ -23,6 +23,8 @@
#include "fs/filesystem.h"
#include "util/libpartitionmanagerexport.h"
#include <QMap>
#include <qglobal.h>
@ -31,7 +33,7 @@ class QString;
/** @brief Factory to create instances of FileSystem.
@author vl@fidra.de
*/
class FileSystemFactory
class LIBPARTITIONMANAGERPRIVATE_EXPORT FileSystemFactory
{
public:
/** map of FileSystem::Types to pointers of FileSystem */

View File

@ -23,6 +23,8 @@
#include "fs/filesystem.h"
#include "util/libpartitionmanagerexport.h"
#include <QObject>
#include <qglobal.h>
@ -42,7 +44,7 @@ class Report;
@author vl@fidra.de
*/
class Job : public QObject
class LIBPARTITIONMANAGERPRIVATE_EXPORT Job : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(Job)

View File

@ -21,6 +21,8 @@
#define EXTERNALCOMMAND__H
#include "util/libpartitionmanagerexport.h"
#include <QProcess>
#include <QStringList>
#include <QString>
@ -34,7 +36,7 @@ class Report;
@author vl@fidra.de
*/
class ExternalCommand : public QProcess
class LIBPARTITIONMANAGERPRIVATE_EXPORT ExternalCommand : public QProcess
{
Q_OBJECT
Q_DISABLE_COPY(ExternalCommand)
@ -46,7 +48,7 @@ class ExternalCommand : public QProcess
public:
void setCommand(const QString& cmd) { m_Command = cmd; } /**< @param cmd the command to run */
const QString& command() const { return m_Command; } /**< @return the command to run */
void addArg(const QString& s) { m_Args << s; } /**< @param s the argument to add */
const QStringList& args() const { return m_Args; } /**< @return the arguments */
void setArgs(const QStringList& args) { m_Args = args; } /**< @param args the new arguments */
@ -64,7 +66,7 @@ class ExternalCommand : public QProcess
protected:
void setExitCode(int i) { m_ExitCode = i; }
void setup();
protected slots:
void onFinished(int exitCode);
void onReadOutput();

View File

@ -27,7 +27,7 @@
#include <QObject>
#include <qglobal.h>
class Log
class LIBPARTITIONMANAGERPRIVATE_EXPORT Log
{
public:
enum Level

View File

@ -21,6 +21,8 @@
#define REPORT__H
#include "util/libpartitionmanagerexport.h"
#include <QObject>
#include <QList>
#include <QString>
@ -34,7 +36,7 @@ class ReportLine;
@author vl@fidra.de
*/
class Report : public QObject
class LIBPARTITIONMANAGERPRIVATE_EXPORT Report : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(Report)