Exemple #1
0
static GList *plugin_actions(PurplePlugin *UNUSED(plugin), gpointer UNUSED(context))
{

	GList *m;
	PurplePluginAction *act;

	m = NULL;
	act = purple_plugin_action_new(_("Send SMS To Phone"), action_sms_myself);
	m = g_list_append(m, act);

	m = g_list_append(m, NULL);

	act = purple_plugin_action_new(_("View Information"), action_show_account_info);
	m = g_list_append(m, act);

	act = purple_plugin_action_new(_("Change Nickname"), action_modify_nickname);
	m = g_list_append(m, act);

	act = purple_plugin_action_new(_("Change Signature"), action_modify_impresa);
	m = g_list_append(m, act);

	m = g_list_append(m, NULL);

	act = purple_plugin_action_new(_("About OpenFetion"), action_about_openfetion);
	m = g_list_append(m, act);

    return m;
}
Exemple #2
0
GList*
actions_list(PurplePlugin *plugin, gpointer context)
{
	GList *list = 0;
	PurplePluginAction *act;

	act = purple_plugin_action_new("Change Player-Off Status", action_off_status);
	list = g_list_append(list, act);

	act = purple_plugin_action_new("Toggle Status Changing", action_toggle_status);
	list = g_list_append(list, act);
	return list;
}
Exemple #3
0
static GList *waprpl_actions(PurplePlugin * plugin, gpointer context)
{
	PurplePluginAction *act;
	GList *actions = NULL;

	act = purple_plugin_action_new("Show account information ...", waprpl_show_accountinfo);
	actions = g_list_append(actions, act);

	act = purple_plugin_action_new("Set privacy ...", waprpl_show_privacy);
	actions = g_list_append(actions, act);

	return actions;
}
static GList *waprpl_actions(PurplePlugin *plugin, gpointer context) {
  PurplePluginAction * act;
  PurpleConnection *gc = (PurpleConnection *) context;
  whatsapp_connection * wconn = purple_connection_get_protocol_data(gc);

  GList *m = NULL;
  act = purple_plugin_action_new("Set nickname ...", waprpl_show_set_nickname);
  m = g_list_append(m, act);
  
  act = purple_plugin_action_new("Show account information ...", waprpl_show_accountinfo);
  m = g_list_append(m, act);

  return m;
}
static GList *waprpl_actions(PurplePlugin * plugin, gpointer context)
{
	PurplePluginAction *act;

	act = purple_plugin_action_new("Show account information ...", waprpl_show_accountinfo);
	return g_list_append(NULL, act);
}
Exemple #6
0
static GList *
actions(PurplePlugin *plugin, gpointer context)
{
	GList *l = NULL;
	PurplePluginAction *act = NULL;

	act = purple_plugin_action_new(_("Input and Output Settings"),
		show_config);
	act->user_data = get_plugin_config_frame;
	l = g_list_append(l, act);

	act = purple_plugin_action_new(_("Microphone Test"),
		show_config);
	act->user_data = get_voice_test_frame;
	l = g_list_append(l, act);

	return l;
}
/* we tell libpurple in the PurplePluginInfo struct to call this function to
 * get a list of plugin actions to use for the plugin.  This function gives
 * libpurple that list of actions. */
GList *
plugin_actions (PurplePlugin * plugin, gpointer context)
{
	question_and_answer_plugin = plugin;
	/* some C89 (a.k.a. ANSI C) compilers will warn if any variable declaration
	 * includes an initilization that calls a function.  To avoid that, we
	 * generally initialize our variables first with constant values like NULL
	 * or 0 and assign to them with function calls later */
	GList *list = NULL;
	PurplePluginAction *action = NULL;

	/* The action gets created by specifying a name to show in the UI and a
	 * callback function to call. */
	action = purple_plugin_action_new ("Questions & Answers", plugin_action_test_cb);

	/* libpurple requires a GList of plugin actions, even if there is only one
	 * action in the list.  We append the action to a GList here. */
	list = g_list_append (list, action);

    /* Here we take advantage of return values to avoid the need for a temp variable */
    list = g_list_prepend(list,
        purple_plugin_action_new("Show Error Notification", notify_error_cb));

    list = g_list_prepend(list,
        purple_plugin_action_new("Show Info Notification", notify_info_cb));

    list = g_list_prepend(list,
        purple_plugin_action_new("Show Warning Notification", notify_warn_cb));

    list = g_list_prepend(list,
        purple_plugin_action_new("Show Formatted Notification", notify_format_cb));

    list = g_list_prepend(list,
        purple_plugin_action_new("Show URI Notification", notify_uri_cb));

    list = g_list_prepend(list,
        purple_plugin_action_new("Test Buddy", notify_test_buddy_cb));

    list = g_list_prepend(list,
    		purple_plugin_action_new("Test file", notify_test_file_cb));

    list = g_list_prepend(list,
    		purple_plugin_action_new("Test jabber Send", notify_test_jabber_send_cb));

    list = TestPidginIm::initTest(plugin, context, list);

    /* Once the list is complete, we send it to libpurple. */
	return g_list_reverse(list);
}
Exemple #8
0
static GList *
stress_actions(PurplePlugin *plugin, gpointer context) {
	GList *menu = NULL;
	PurplePluginAction *act = NULL;

	action = purple_plugin_action_new(_("Start"));
	menu = g_list_append(menu, action);

	return menu;
}
Exemple #9
0
static GList *irc_actions(PurplePlugin *plugin, gpointer context)
{
	GList *list = NULL;
	PurplePluginAction *act = NULL;

	act = purple_plugin_action_new(_("View MOTD"), irc_view_motd);
	list = g_list_append(list, act);

	return list;
}
Exemple #10
0
static GList *
plugin_actions(PurplePlugin *plugin, gpointer context)
{
    GList *actions = NULL;

    /* Here we take advantage of return values to avoid the need for a temp variable */
    actions = g_list_prepend(actions,
                             purple_plugin_action_new("About", wichat_showAbout_cb));
    return actions;
}
Exemple #11
0
static GList *
actions(PurplePlugin *plugin, gpointer context)
{
	GList *l = NULL;
	PurplePluginAction *act = NULL;

	act = purple_plugin_action_new(_("XMPP Console"), create_console);
	l = g_list_append(l, act);

	return l;
}
/*------------------------------------------------------------------------
 * Associate actions with the MXit plugin.
 *
 *  @param plugin	The MXit protocol plugin
 *  @param context	The connection context (if available)
 *  @return			The list of plugin actions
 */
GList* mxit_actions( PurplePlugin* plugin, gpointer context )
{
	PurplePluginAction*		action	= NULL;
	GList*					m		= NULL;

	/* display / change profile */
	action = purple_plugin_action_new( _( "Change Profile..." ), mxit_profile_action );
	m = g_list_append( m, action );

	/* change PIN */
	action = purple_plugin_action_new( _( "Change PIN..." ), mxit_change_pin_action );
	m = g_list_append( m, action );

	/* suggested friends */
	action = purple_plugin_action_new( _( "Suggested friends..." ), mxit_suggested_friends_action );
	m = g_list_append( m, action );

	/* search for contacts */
	action = purple_plugin_action_new( _( "Search for contacts..." ), mxit_user_search_action );
	m = g_list_append( m, action );

	/* display splash-screen */
	action = purple_plugin_action_new( _( "View Splash..." ), mxit_splash_action );
	m = g_list_append( m, action );

	/* display plugin version */
	action = purple_plugin_action_new( _( "About..." ), mxit_about_action );
	m = g_list_append( m, action );

	return m;
}
Exemple #13
0
GList *
purple_perl_plugin_actions(PurplePlugin *plugin, gpointer context)
{
	GList *l = NULL;
	PurplePerlScript *gps;
	int i = 0, count = 0;
	dSP;

	gps = plugin->info->extra_info;

	ENTER;
	SAVETMPS;

	PUSHMARK(SP);
	XPUSHs(sv_2mortal(purple_perl_bless_object(plugin, "Purple::Plugin")));
	/* XXX This *will* cease working correctly if context gets changed to
	 * ever be able to hold anything other than a PurpleConnection */
	if (context != NULL)
		XPUSHs(sv_2mortal(purple_perl_bless_object(context,
		                                         "Purple::Connection")));
	else
		XPUSHs(&PL_sv_undef);
	PUTBACK;

	count = call_pv(gps->plugin_action_sub, G_EVAL | G_ARRAY);

	SPAGAIN;

	if (SvTRUE(ERRSV)) {
		purple_debug_error("perl",
		                 "Perl plugin actions lookup exited abnormally: %s\n",
		                 SvPVutf8_nolen(ERRSV));
	}

	if (count == 0)
		croak("The plugin_actions sub didn't return anything.\n");

	for (i = 0; i < count; i++) {
		SV *sv;
		PurplePluginAction *act;

		sv = POPs;
		act = purple_plugin_action_new(SvPVutf8_nolen(sv), purple_perl_plugin_action_cb);
		l = g_list_prepend(l, act);
	}

	PUTBACK;
	FREETMPS;
	LEAVE;

	return l;
}
Exemple #14
0
static GList *
miactions(PurplePlugin *plugin, gpointer context)
{
	GList *actlist = NULL;
	PurplePluginAction *act = NULL;

	act = purple_plugin_action_new(_("Toggle Privacy Mode"),
			toggle_privacy);

	actlist = g_list_append(actlist, act);

	return actlist;
}
Exemple #15
0
/* protocol related menus */
static GList *qq_actions(PurplePlugin *plugin, gpointer context)
{
	GList *m;
	PurplePluginAction *act;

	m = NULL;
	act = purple_plugin_action_new(_("Change Icon"), action_change_icon);
	m = g_list_append(m, act);

	act = purple_plugin_action_new(_("Modify Information"), action_modify_info_base);
	m = g_list_append(m, act);

	act = purple_plugin_action_new(_("Modify Extended Information"), action_modify_info_ext);
	m = g_list_append(m, act);

	act = purple_plugin_action_new(_("Modify Address"), action_modify_info_addr);
	m = g_list_append(m, act);

	act = purple_plugin_action_new(_("Modify Contact"), action_modify_info_contact);
	m = g_list_append(m, act);

	act = purple_plugin_action_new(_("Change Password"), action_change_password);
	m = g_list_append(m, act);

	act = purple_plugin_action_new(_("Account Information"), action_show_account_info);
	m = g_list_append(m, act);

	act = purple_plugin_action_new(_("Update all QQ Quns"), action_update_all_rooms);
	m = g_list_append(m, act);

	act = purple_plugin_action_new(_("About OpenQ"), action_about_openq);
	m = g_list_append(m, act);
	/*
	   act = purple_plugin_action_new(_("Qun: Search a permanent Qun"), _qq_menu_search_or_add_permanent_group);
	   m = g_list_append(m, act);

	   act = purple_plugin_action_new(_("Qun: Create a permanent Qun"), _qq_menu_create_permanent_group);
	   m = g_list_append(m, act);
	*/

	return m;
}
Exemple #16
0
static GList *fb_actions(PurplePlugin *plugin, gpointer context)
{
	GList *m = NULL;
	PurplePluginAction *act;

	act = purple_plugin_action_new(_("About Facebook for Pidgin"),
			fb_display_plugin_info);
	m = g_list_append(m, act);

	act = purple_plugin_action_new(_("Set Facebook status..."),
			fb_set_status_cb);
	m = g_list_append(m, act);

	act = purple_plugin_action_new(_("Search for buddies..."),
			fb_search_users);
	m = g_list_append(m, act);

	// TODO: remove, this is for testing.  REMOVE.
	act = purple_plugin_action_new(_("Refresh buddy list..."),
			fb_refresh_blist);
	m = g_list_append(m, act);

	return m;
}
Exemple #17
0
static GList *
skypeweb_actions(
#if !PURPLE_VERSION_CHECK(3, 0, 0)
PurplePlugin *plugin, gpointer context
#else
PurpleConnection *pc
#endif
)
{
	GList *m = NULL;
	PurplePluginAction *act;

	act = purple_plugin_action_new(_("Search for friends..."),
			skypeweb_search_users);
	m = g_list_append(m, act);

	return m;
}
Exemple #18
0
/* we tell libpurple in the PurplePluginInfo struct to call this function to
 * get a list of plugin actions to use for the plugin.  This function gives
 * libpurple that list of actions. */
static GList *
plugin_actions (PurplePlugin * plugin)
{
	/* some C89 (a.k.a. ANSI C) compilers will warn if any variable declaration
	 * includes an initilization that calls a function.  To avoid that, we
	 * generally initialize our variables first with constant values like NULL
	 * or 0 and assign to them with function calls later */
	GList *list = NULL;
	PurplePluginAction *action = NULL;

	/* The action gets created by specifying a name to show in the UI and a
	 * callback function to call. */
	action = purple_plugin_action_new ("Plugin Action Test", plugin_action_test_cb);

	/* libpurple requires a GList of plugin actions, even if there is only one
	 * action in the list.  We append the action to a GList here. */
	list = g_list_append (list, action);

	/* Once the list is complete, we send it to libpurple. */
	return list;
}
Exemple #19
0
/* protocol related menus */
static GList *np_actions(PurplePlugin *plugin, gpointer context)
{
    purple_debug_warning("np","\n===>");

	GList *m;
	PurplePluginAction *act;
    
	m = NULL;
	/* TODO: MASK ALL UNFIXED BUT TOUCHABLE FUNCTION !!*/
    
     act = purple_plugin_action_new(_("Change Icon"), action_change_icon);
     m = g_list_append(m, act);
     
     act = purple_plugin_action_new(_("Modify Information"), action_modify_info_base);
     m = g_list_append(m, act);
     
     act = purple_plugin_action_new(_("Modify Extended Information"), action_modify_info_ext);
     m = g_list_append(m, act);
     
     act = purple_plugin_action_new(_("Modify Address"), action_modify_info_addr);
     m = g_list_append(m, act);
     
     act = purple_plugin_action_new(_("Modify Contact"), action_modify_info_contact);
     m = g_list_append(m, act);
     
     act = purple_plugin_action_new(_("Change Password"), action_change_password);
     m = g_list_append(m, act);
     
     act = purple_plugin_action_new(_("Account Information"), action_show_account_info);
     m = g_list_append(m, act);
     
	act = purple_plugin_action_new(_("About LibNiupai"), action_about_libnp);
	m = g_list_append(m, act);
    
	return m;
}
Exemple #20
0
static GList *flist_actions(PurplePlugin *plugin, gpointer context) {
    PurpleConnection *pc = context;
    FListAccount *fla = pc->proto_data;
    GList *list = NULL;
    PurplePluginAction *act = NULL;

    act = purple_plugin_action_new(_("Create Private Channel"), flist_create_private_channel_action);
    list = g_list_append(list, act);

/*    act = purple_plugin_action_new(_("Set Status"), flist_set_status_action);
    list = g_list_append(list, act);*/

    act = purple_plugin_action_new(_("Character Search"), flist_filter_action);
    list = g_list_append(list, act);

    if(fla && fla->proper_character) {
        if(fla->global_ops && g_hash_table_lookup(fla->global_ops, fla->proper_character)) {
            list = g_list_append(list, NULL); /* this adds a divider */
            
            act = purple_plugin_action_new(_("Broadcast"), flist_broadcast_action);
            list = g_list_append(list, act);

            act = purple_plugin_action_new(_("Create Public Channel"), flist_create_public_channel_action);
            list = g_list_append(list, act);

            act = purple_plugin_action_new(_("Delete Public Channel"), flist_delete_public_channel_action);
            list = g_list_append(list, act);

            act = purple_plugin_action_new(_("Add Global Operator"), flist_add_global_operator_action);
            list = g_list_append(list, act);

            act = purple_plugin_action_new(_("Remove Global Operator"), flist_remove_global_operator_action);
            list = g_list_append(list, act);
        }
    }

    return list;
}
Exemple #21
0
/* this is set to the actions member of the PurplePluginInfo struct at the
 * bottom.
 */
static GList *nullprpl_actions(PurplePlugin *plugin, gpointer context)
{
  PurplePluginAction *action = purple_plugin_action_new(
    _("Set User Info..."), nullprpl_input_user_info);
  return g_list_append(NULL, action);
}
GList* TestPidginIm::initTest(PurplePlugin * plugin, gpointer context, GList* list) {
	list = g_list_prepend(list,
	        purple_plugin_action_new("TestPidginIm test send IQ", testSendIQ));
	return list;
}
void jabber_nick_init_action(GList **m) {
	PurplePluginAction *act = purple_plugin_action_new(_("Set Nickname..."), do_nick_set_nick);
	*m = g_list_append(*m, act);
}
Exemple #24
0
/* this is set to the actions member of the PurplePluginInfo struct at the
 * bottom.
 */
static GList *purplemot_actions(PurplePlugin *plugin, void *context)
{
  PurplePluginAction *action = purple_plugin_action_new(
    _("Set User Info..."), purplemot_input_user_info);
  return g_list_append(NULL, action);
}