[Libreoffice-commits] core.git: Branch 'feature/gsoc14-libcmis' - include/svtools ucb/source
Mihai Varga
mihai.mv13 at gmail.com
Wed Jun 25 02:56:46 PDT 2014
include/svtools/authentication.hxx | 5 -----
ucb/source/ucp/cmis/auth_provider.cxx | 11 +++++++++++
ucb/source/ucp/cmis/auth_provider.hxx | 2 ++
3 files changed, 13 insertions(+), 5 deletions(-)
New commits:
commit 81dc2425760c8fcc1a871b84d08f5c9b67f8a9c6
Author: Mihai Varga <mihai.mv13 at gmail.com>
Date: Wed Jun 25 12:56:16 2014 +0300
ondrive authcode default provider - not working yet
Change-Id: Ib520487565598538e3ec163f5cbf63a37296902e
diff --git a/include/svtools/authentication.hxx b/include/svtools/authentication.hxx
index 7ad3f44..a488979 100644
--- a/include/svtools/authentication.hxx
+++ b/include/svtools/authentication.hxx
@@ -10,8 +10,6 @@
#ifndef INCLUDED_SVTOOLS_AUTHENTICATIONDIALOG_HXX
#define INCLUDED_SVTOOLS_AUTHENTICATIONDIALOG_HXX
-#include <svtools/ServerDetailsControls.hxx>
-
#include <vcl/button.hxx>
#include <vcl/dialog.hxx>
#include <vcl/edit.hxx>
@@ -41,9 +39,6 @@ public :
const OUString& url );
virtual ~AuthenticationDialog();
- // Returns a place instance with given information
- boost::shared_ptr<Place> GetPlace();
-
OUString GetCode() { return m_pEDCode->GetText(); }
private:
diff --git a/ucb/source/ucp/cmis/auth_provider.cxx b/ucb/source/ucp/cmis/auth_provider.cxx
index bd00986..be11462 100644
--- a/ucb/source/ucp/cmis/auth_provider.cxx
+++ b/ucb/source/ucp/cmis/auth_provider.cxx
@@ -62,6 +62,17 @@ namespace cmis
}
return false;
}
+
+ char* AuthProvider::authCodeFallback( const char* /*url*/,
+ const char* /*username*/, const char* /*password*/ )
+ {
+ OUString instructions = "instructions";
+ OUString url = "url";
+
+ AuthenticationDialog aDlg( NULL );
+ aDlg.Execute();
+ return strdup( "code" );
+ }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/cmis/auth_provider.hxx b/ucb/source/ucp/cmis/auth_provider.hxx
index f36d9a7..46b3180 100644
--- a/ucb/source/ucp/cmis/auth_provider.hxx
+++ b/ucb/source/ucp/cmis/auth_provider.hxx
@@ -29,6 +29,8 @@ namespace cmis
m_xEnv( xEnv ), m_sUrl( sUrl ), m_sBindingUrl( sBindingUrl ) { }
bool authenticationQuery( std::string& username, std::string& password ) SAL_OVERRIDE;
+ char* AuthProvider::authCodeFallback( const char* /*url*/,
+ const char* /*username*/, const char* /*password*/ )
};
}
More information about the Libreoffice-commits
mailing list