[glibmm] giomm: Add the TlsFileDatabase interface.



commit 069d395edeb9e4eb213e4b6e6d01ddc5009fd566
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date:   Wed Jan 2 20:31:12 2013 -0500

    giomm: Add the TlsFileDatabase interface.
    
    	* gio/src/filelist.am:
    	* gio/src/tlsfiledatabase.{ccg,hg}: Add the new sources wrapping a
    	single property and include them in the list of files to be built.
    	* gio/src/tlsinteraction.hg: Correct a typo.

 ChangeLog                   |    9 ++++++++
 gio/src/filelist.am         |    1 +
 gio/src/tlsfiledatabase.ccg |   23 ++++++++++++++++++++++
 gio/src/tlsfiledatabase.hg  |   45 +++++++++++++++++++++++++++++++++++++++++++
 gio/src/tlsinteraction.hg   |    2 +-
 5 files changed, 79 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 87109ba..b940855 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2013-01-02  Josà Alburquerque  <jaalburquerque gmail com>
+
+	giomm: Add the TlsFileDatabase interface.
+
+	* gio/src/filelist.am:
+	* gio/src/tlsfiledatabase.{ccg,hg}: Add the new sources wrapping a
+	single property and include them in the list of files to be built.
+	* gio/src/tlsinteraction.hg: Correct a typo.
+
 2013-01-01  Josà Alburquerque  <jaalburquerque gmail com>
 
 	giomm: Add the TlsInteraction class.
diff --git a/gio/src/filelist.am b/gio/src/filelist.am
index 58e9764..47f59af 100644
--- a/gio/src/filelist.am
+++ b/gio/src/filelist.am
@@ -114,6 +114,7 @@ giomm_files_any_hg =			\
 	threadedsocketservice.hg	\
 	themedicon.hg			\
 	tlscertificate.hg		\
+	tlsfiledatabase.hg		\
 	tlsinteraction.hg		\
 	tlspassword.hg			\
 	volume.hg			\
diff --git a/gio/src/tlsfiledatabase.ccg b/gio/src/tlsfiledatabase.ccg
new file mode 100644
index 0000000..22171e0
--- /dev/null
+++ b/gio/src/tlsfiledatabase.ccg
@@ -0,0 +1,23 @@
+/* Copyright (C) 2013 The giomm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gio/gio.h>
+
+namespace Gio
+{
+
+} // namespace Gio
diff --git a/gio/src/tlsfiledatabase.hg b/gio/src/tlsfiledatabase.hg
new file mode 100644
index 0000000..be4adc5
--- /dev/null
+++ b/gio/src/tlsfiledatabase.hg
@@ -0,0 +1,45 @@
+/* Copyright (C) 2013 The giomm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <glibmm/interface.h>
+
+_DEFS(giomm,gio)
+_PINCLUDE(glibmm/private/interface_p.h)
+_PINCLUDE(gio/gio.h)
+
+#ifndef DOXYGEN_SHOULD_SKIP_THIS
+typedef struct _GTlsFileDatabaseInterface GTlsFileDatabaseInterface;
+#endif /* DOXYGEN_SHOULD_SKIP_THIS */
+
+namespace Gio
+{
+
+/** TlsFileDatabase - TLS file based database type.
+ * TlsFileDatabase is implemented by TlsDatabase objects which load their
+ * certificate information from a file. It is in interface which TLS library
+ * specific subtypes implement.
+ * @newin{2,36}
+ */
+class TlsFileDatabase : public Glib::Interface
+{
+  _CLASS_INTERFACE(TlsFileDatabase, GTlsFileDatabase, G_TLS_FILE_DATABASE, GTlsFileDatabaseInterface)
+
+public:
+  _WRAP_PROPERTY("anchors", Glib::ustring)
+};
+
+} // namespace Gio
diff --git a/gio/src/tlsinteraction.hg b/gio/src/tlsinteraction.hg
index b738109..e9936a8 100644
--- a/gio/src/tlsinteraction.hg
+++ b/gio/src/tlsinteraction.hg
@@ -33,7 +33,7 @@ class TlsPassword;
  * TlsInteraction provides a mechanism for the TLS connection and database code to interact with the user. It can be used to ask the user for passwords.
  *
  * To use a TlsInteraction with a TLS connection use
- * Gio::TlSconnection::set_interaction().
+ * Gio::TlsConnection::set_interaction().
  *
  * Callers should instantiate a derived class that implements the various
  * interaction methods to show the required dialogs.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]