summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Alburquerque <jaalburqu@svn.gnome.org>2013-01-02 20:31:12 -0500
committerJosé Alburquerque <jaalburqu@svn.gnome.org>2013-01-02 20:51:23 -0500
commit069d395edeb9e4eb213e4b6e6d01ddc5009fd566 (patch)
tree3857d3e90e7885017fc14664e1042c05bbaec6ee
parentf6f3801ce576a1186d1bf2dab04498801ef3e8b4 (diff)
downloadglibmm-069d395edeb9e4eb213e4b6e6d01ddc5009fd566.tar.gz
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.
-rw-r--r--ChangeLog9
-rw-r--r--gio/src/filelist.am1
-rw-r--r--gio/src/tlsfiledatabase.ccg23
-rw-r--r--gio/src/tlsfiledatabase.hg45
-rw-r--r--gio/src/tlsinteraction.hg2
5 files changed, 79 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 87109ba2..b9408558 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 58e97641..47f59afb 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 00000000..22171e07
--- /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 00000000..be4adc58
--- /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 b7381091..e9936a8b 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.