Some test madness
This commit is contained in:
@ -77,6 +77,15 @@ void DebugOutputDestination::write(const QString &message)
|
||||
QsDebugOutput::output(message);
|
||||
}
|
||||
|
||||
class QDebugDestination : public Destination
|
||||
{
|
||||
public:
|
||||
virtual void write(const QString &message)
|
||||
{
|
||||
qDebug() << message;
|
||||
};
|
||||
};
|
||||
|
||||
DestinationPtr DestinationFactory::MakeFileDestination(const QString &filePath)
|
||||
{
|
||||
return DestinationPtr(new FileDestination(filePath));
|
||||
@ -87,4 +96,9 @@ DestinationPtr DestinationFactory::MakeDebugOutputDestination()
|
||||
return DestinationPtr(new DebugOutputDestination);
|
||||
}
|
||||
|
||||
DestinationPtr DestinationFactory::MakeQDebugDestination()
|
||||
{
|
||||
return DestinationPtr(new QDebugDestination);
|
||||
}
|
||||
|
||||
} // end namespace
|
||||
|
@ -47,6 +47,7 @@ class DestinationFactory
|
||||
public:
|
||||
static DestinationPtr MakeFileDestination(const QString &filePath);
|
||||
static DestinationPtr MakeDebugOutputDestination();
|
||||
static DestinationPtr MakeQDebugDestination();
|
||||
};
|
||||
|
||||
} // end namespace
|
||||
|
Reference in New Issue
Block a user