gitg/libgitg-ext/gitg-ext-application.vala

68 lines
2 KiB
Vala
Raw Normal View History

/*
* This file is part of gitg
*
* Copyright (C) 2012 - Jesse van den Kieboom
*
* gitg 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 2 of the License, or
* (at your option) any later version.
*
* gitg 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 gitg. If not, see <http://www.gnu.org/licenses/>.
*/
2012-04-14 11:46:39 +00:00
namespace GitgExt
{
/**
* Application is an interface to access the main gitg application.
*
* The application interface is provided to plugins to access the main gitg
* application instance. It contains properties to access the currently open
* repository as well as methods to open or create repositories.
*
2012-10-30 10:05:37 +00:00
*/
2012-04-14 11:46:39 +00:00
public interface Application : Object
{
/**
* The currently open repository.
*/
2012-10-30 10:03:55 +00:00
public abstract Gitg.Repository? repository { owned get; set; }
/**
2012-10-30 10:05:37 +00:00
* An application wide message bus over which plugins can communicate.
*/
2012-04-14 11:46:39 +00:00
public abstract GitgExt.MessageBus message_bus { owned get; }
/**
2013-07-01 08:32:47 +00:00
* The current application main activity.
*/
2013-07-01 08:32:47 +00:00
public abstract GitgExt.Activity? current_activity { owned get; }
2012-04-14 11:46:39 +00:00
/**
2013-07-01 08:32:47 +00:00
* Set the current application main activity.
*
2013-07-01 08:32:47 +00:00
* @param id the id of the activity {@link UIElement.id}.
*
2013-07-01 08:32:47 +00:00
* @return the created new main activity, or ``null`` if no activity with the
* given id exists.
*/
2013-07-01 08:32:47 +00:00
public abstract GitgExt.Activity? activity(string id);
2013-07-03 16:50:01 +00:00
public abstract void show_infobar(string primary_msg,
string secondary_msg,
Gtk.MessageType type);
2013-07-05 11:04:07 +00:00
public abstract Gee.Map<string, string> environment { owned get; }
2012-04-14 11:46:39 +00:00
}
}
// ex:set ts=4 noet: