~ubuntuone-hackers/ubuntu-download-manager/vivid

« back to all changes in this revision

Viewing changes to src/common/public/ubuntu/transfers/errors/auth_error_struct.h

  • Committer: CI Train Bot
  • Author(s): Manuel de la Pena, CI Train Bot
  • Date: 2015-09-22 15:27:23 UTC
  • mfrom: (338.2.14 vivid-add-appid-metadata)
  • Revision ID: ci-train-bot@canonical.com-20150922152723-gyk5ul6h0d4d0l0h
The download object now carries the app id of the application that created the download. Fixes: #1481673
Approved by: Alfonso Sanchez-Beato

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2014 Canonical Ltd.
 
2
 * Copyright 2014-2015 Canonical Ltd.
3
3
 *
4
4
 * This library is free software; you can redistribute it and/or
5
5
 * modify it under the terms of version 3 of the GNU Lesser General Public
16
16
 * Boston, MA 02110-1301, USA.
17
17
 */
18
18
 
19
 
#ifndef DOWNLOADER_LIB_AUTH_ERROR_STRUCT_H
20
 
#define DOWNLOADER_LIB_AUTH_ERROR_STRUCT_H
 
19
#pragma once
21
20
 
22
21
class QDBusArgument;
23
22
 
55
54
    /*!
56
55
        Creates a new structure with the given error types and message.
57
56
    */
58
 
    AuthErrorStruct(AuthErrorStruct::Type type, QString phrase);
 
57
    AuthErrorStruct(AuthErrorStruct::Type type, const QString& phrase);
59
58
 
60
59
    /*!
61
60
        Creates a new structure with the given error types and message.
62
61
    */
63
 
    AuthErrorStruct(int type, QString phrase);
 
62
    AuthErrorStruct(int type, const QString& phrase);
64
63
 
65
64
    /*!
66
65
        Copy constructor.
87
86
    // properties getters
88
87
 
89
88
    /*!
90
 
        \fn AuthErrorStruct::Type getType()
 
89
        \fn AuthErrorStruct::Type getType() const
91
90
 
92
91
        Returns the type of the error.
93
92
    */
94
 
    AuthErrorStruct::Type getType();
 
93
    AuthErrorStruct::Type getType() const;
95
94
 
96
95
    /*!
97
 
        \fn QString getPhrase()
 
96
        \fn QString getPhrase() const
98
97
 
99
98
        Returns the message of the error.
100
99
    */
101
 
    QString getPhrase();
 
100
    QString getPhrase() const;
102
101
 
103
102
 private:
104
103
 
110
109
    /*!
111
110
        \internal
112
111
    */
113
 
    QString _phrase;
 
112
    QString _phrase = QString::null;
114
113
};
115
114
 
116
115
}  // Errors
118
117
}  // Transfers
119
118
 
120
119
}  // Ubuntu
121
 
 
122
 
#endif // AUTH_ERROR_STRUCT_H