~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to libs/database/databaseservererror.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-21 23:19:11 UTC
  • mfrom: (1.2.33 upstream) (3.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20101221231911-z9jip7s5aht1jqn9
Tags: 2:1.7.0-1ubuntu1
* Merge from Debian Experimental. Remaining Ubuntu changes:
  - Export .pot name and copy to plugins in debian/rules
  - Version build-depends on kipi-plugins-dev to ensure build is against the
    same version on all archs
* Drop debian/patches/kubuntu_01_linker.diff, incoporated upstream
* Remove patches directory and unused patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
namespace Digikam
28
28
{
29
29
 
30
 
DatabaseServerError::DatabaseServerError(DatabaseServerErrorEnum errorType, const QString &errorText)
 
30
DatabaseServerError::DatabaseServerError(DatabaseServerErrorEnum errorType, const QString& errorText)
31
31
{
32
32
    m_ErrorText = errorText;
33
33
    m_ErrorType = errorType;
34
34
}
35
35
 
36
 
DatabaseServerError::DatabaseServerError(const DatabaseServerError &dbServerError)
 
36
DatabaseServerError::DatabaseServerError(const DatabaseServerError& dbServerError)
37
37
{
38
38
    m_ErrorText = dbServerError.m_ErrorText;
39
39
    m_ErrorType = dbServerError.m_ErrorType;
44
44
}
45
45
 
46
46
// Marshall the DatabaseServerError data into a D-BUS argument
47
 
DatabaseServerError &DatabaseServerError::operator<<(const QDBusArgument &argument)
 
47
DatabaseServerError& DatabaseServerError::operator<<(const QDBusArgument& argument)
48
48
{
49
 
        argument.beginStructure();
50
 
        argument >> m_ErrorType >> m_ErrorText;
51
 
        argument.endStructure();
52
 
        return *this;
 
49
    argument.beginStructure();
 
50
    argument >> m_ErrorType >> m_ErrorText;
 
51
    argument.endStructure();
 
52
    return *this;
53
53
}
54
54
 
55
55
// Retrieve the DatabaseServerError data from the D-BUS argument
56
 
const DatabaseServerError &DatabaseServerError::operator>>(QDBusArgument &argument) const
 
56
const DatabaseServerError& DatabaseServerError::operator>>(QDBusArgument& argument) const
57
57
{
58
58
    argument.beginStructure();
59
59
    argument << m_ErrorType << m_ErrorText;
75
75
{
76
76
    return m_ErrorText;
77
77
}
78
 
void DatabaseServerError::setErrorText(const QString &errorText)
 
78
void DatabaseServerError::setErrorText(const QString& errorText)
79
79
{
80
80
    m_ErrorText=errorText;
81
81
}