-
Notifications
You must be signed in to change notification settings - Fork 693
Chunking ng #5102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chunking ng #5102
Changes from all commits
4f3f642
a155810
fad387b
79abb8b
818b585
c41f6ed
7c75a39
4c79ce2
28018e8
c222793
3c24d5a
da26e59
0960058
273590f
e33b89c
8ca3eb7
456d827
c8014a0
15f2b91
5377d1e
92027e8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,6 +68,10 @@ class OWNCLOUDSYNC_EXPORT Account : public QObject { | |
|
|
||
| AccountPtr sharedFromThis(); | ||
|
|
||
| /// The user that can be used in dav url | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add a comment explaining in what situations that would be different from credentials.user()?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know. I was just told it could be different and that i had to do an API call even when using the HTTPCrendentials. @DeepDiver1975 Can you clarify? |
||
| QString user() const; | ||
| void setUser(const QString &user); | ||
|
|
||
| /// The name of the account as shown in the toolbar | ||
| QString displayName() const; | ||
|
|
||
|
|
@@ -198,6 +202,7 @@ protected Q_SLOTS: | |
|
|
||
| QWeakPointer<Account> _sharedThis; | ||
| QString _id; | ||
| QString _user; | ||
| QMap<QString, QVariant> _settingsMap; | ||
| QUrl _url; | ||
| QList<QSslCertificate> _approvedCerts; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,8 +25,12 @@ namespace OCC { | |
| class MoveJob : public AbstractNetworkJob { | ||
| Q_OBJECT | ||
| const QString _destination; | ||
| const QUrl _url; // Only used (instead of path) when the constructor taking an URL is used | ||
| QMap<QByteArray, QByteArray> _extraHeaders; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm wondering if this should somehow be in AbstractNetworkJob? but maybe it can't if the subclasses are the ones instaciating the reply.. so not important.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had the same thought. Adding the "manual url" override for each job doesn't look nice. Could there be a target() function that returns path() or _url that derived classes could use? Similarly, maybe extraHeaders could be on the AbstractNetworkJob and subclasses could call applyExtraHeaders on their QNetworkRequests? Finally, could the url override and extra headers be setters? |
||
| public: | ||
| explicit MoveJob(AccountPtr account, const QString& path, const QString &destination, QObject* parent = 0); | ||
| explicit MoveJob(AccountPtr account, const QUrl& url, const QString &destination, | ||
| QMap<QByteArray, QByteArray> _extraHeaders, QObject* parent = 0); | ||
|
|
||
| void start() Q_DECL_OVERRIDE; | ||
| bool finished() Q_DECL_OVERRIDE; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please comment how this relates to the shibboleth user or the user name entered in the wizard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know exactly. the answer from @DeepDiver1975 on #engineering (17:26) was not enough for me to make a better comment.