Back to index

libindicate  12.10.0
Static Public Member Functions
IndicatorExample.MainClass Class Reference

List of all members.

Static Public Member Functions

static void Main (string[] args)
static void ServerDisplay (object sender, Indicate.ServerDisplayArgs args)
static void UserDisplay (object sender, System.EventArgs args)

Detailed Description

Definition at line 8 of file IndicatorMonoExample.cs.


Member Function Documentation

static void IndicatorExample.MainClass.Main ( string[]  args) [inline, static]

Definition at line 10 of file IndicatorMonoExample.cs.

              {
                     Application.Init ();
                     Indicate.Server server = Indicate.Server.RefDefault();
                     server.SetType("message.im");
                     server.DesktopFile("/usr/share/applications/empathy.desktop");
                     server.ServerDisplay += new Indicate.ServerDisplayHandler(ServerDisplay);
                     server.Show();

                     Indicator indicator = new Indicate.Indicator();
                     indicator.SetProperty("subtype", "im");
                     indicator.SetProperty("sender", "Barney Rubble");
                     indicator.UserDisplay += new EventHandler(UserDisplay);
                     indicator.Show();

                     Application.Run ();
              }

Here is the call graph for this function:

static void IndicatorExample.MainClass.ServerDisplay ( object  sender,
Indicate.ServerDisplayArgs  args 
) [inline, static]

Definition at line 28 of file IndicatorMonoExample.cs.

              {
                     Console.WriteLine ("Server was displayed");
              }

Here is the caller graph for this function:

static void IndicatorExample.MainClass.UserDisplay ( object  sender,
System.EventArgs  args 
) [inline, static]

Definition at line 33 of file IndicatorMonoExample.cs.

              {
                     Console.WriteLine ("Indicator was displayed");
                     Indicate.Indicator indicator = sender as Indicate.Indicator;
                     indicator.Hide();
              }

Here is the caller graph for this function:


The documentation for this class was generated from the following file: