diff --git a/SparkleLib/SparkleRepo.cs b/SparkleLib/SparkleRepo.cs index d73e1bf9..7f738cba 100644 --- a/SparkleLib/SparkleRepo.cs +++ b/SparkleLib/SparkleRepo.cs @@ -23,8 +23,7 @@ using System.Timers; namespace SparkleLib { - public class SparkleRepo - { + public class SparkleRepo { private Process Process; private Timer FetchTimer; diff --git a/SparkleShare/Makefile.am b/SparkleShare/Makefile.am index f3183d46..a5d76615 100644 --- a/SparkleShare/Makefile.am +++ b/SparkleShare/Makefile.am @@ -11,6 +11,7 @@ SOURCES = \ SparkleBubble.cs \ SparkleEntry.cs \ SparkleIntro.cs \ + SparkleInvitation.cs \ SparkleShare.cs \ SparkleSpinner.cs \ SparkleStatusIcon.cs \ diff --git a/SparkleShare/SparkleInvitation.cs b/SparkleShare/SparkleInvitation.cs new file mode 100644 index 00000000..5b135107 --- /dev/null +++ b/SparkleShare/SparkleInvitation.cs @@ -0,0 +1,43 @@ +// SparkleShare, an instant update workflow to Git. +// Copyright (C) 2010 Hylke Bons +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +using System; +using System.IO; +using System.Xml; + +namespace SparkleShare { + + class SparkleInvitation { + + public SparkleInvitation (string file_path) + { + + XmlDocument xml_doc = new XmlDocument (); + xml_doc.Load (file_path); + + XmlNodeList server_xml = xml_doc.GetElementsByTagName ("server"); + XmlNodeList repository_xml = xml_doc.GetElementsByTagName ("repository"); + XmlNodeList key_xml = xml_doc.GetElementsByTagName ("key"); + + string server = server_xml [0].InnerText; + string repository = repository_xml [0].InnerText; + string key = key_xml [0].InnerText; + + } + + } + +} diff --git a/SparkleShare/SparkleUI.cs b/SparkleShare/SparkleUI.cs index 86dc8953..9bcc6fe6 100644 --- a/SparkleShare/SparkleUI.cs +++ b/SparkleShare/SparkleUI.cs @@ -49,6 +49,8 @@ namespace SparkleShare { BusG.Init (); Gtk.Application.Init (); + SparkleInvitation i = new SparkleInvitation ("/home/hbons/SparkleShare/sparkleshare.invitation"); + SetProcessName ("sparkleshare"); Repositories = new List (); diff --git a/data/gnome-design.sparkleshare-invitation b/data/gnome-design.sparkleshare-invitation new file mode 100644 index 00000000..0f237b93 --- /dev/null +++ b/data/gnome-design.sparkleshare-invitation @@ -0,0 +1,7 @@ + + + + + + +