Beispiel #1
0
        /// <summary>
        /// Object constructor.
        /// </summary>
        /// <param name="hContact">
        /// Handle used for various Miranda contact manipulations.
        /// </param>
        public Contact(IntPtr hContact)
        {
            this.hContact = hContact;

            contactSettingChangedHook = ContactSettingChanged;
            hContactSettingChangedHook = Plugin.m_HookEvent(
                "DB/Contact/SettingChanged",
                contactSettingChangedHook);
        }
Beispiel #2
0
 public HellGatePlugin()
 {
     eventAdded = EventAdded;
     cListDoubleClicked = CListDoubleClicked;
 }
        /// <summary>
        /// Creates object, hooks all needed Miranda events.
        /// </summary>
        /// <param name="hInstance">
        /// Handle of DLL instance. Used to gather resources from it.
        /// </param>
        /// <param name="hLangpack">Miranda language pack handle.</param>
        /// <param name="groupName">
        /// Not localized name of group in Miranda options dialog.
        /// </param>
        /// <param name="pageName">
        /// Name of page in Miranda options dialog.
        /// </param>
        /// <param name="uniquePageId">
        /// Unique string ID used for this page. Use of full qualified plugin
        /// class name recommended.
        /// </param>
        /// <param name="content">
        /// Visual object representing the content to be placed into options
        /// page.
        /// </param>
        public OptionsPageInterface(
            IntPtr hInstance,
            int hLangpack,
            string groupName,
            string pageName,
            string uniquePageId,
            Visual content)
        {
            this.hInstance = hInstance;
            _hLangpack = hLangpack;
            this.groupName = groupName;
            this.pageName = pageName;
            this.uniquePageId = uniquePageId;
            this.content = content;

            // Prepare delegates:
            optInitialise = Initialise;
            dlgProc = DlgProc;

            // Hook options dialog initialise event:
            hOptInitialise =
                Plugin.m_HookEvent("Opt/Initialise", optInitialise);
        }
Beispiel #4
0
 protected int SetHookDefaultForHookableEvent(IntPtr hEvent, MirandaHook hookProc)
 {
     return Plugin.m_SetHookDefaultForHookableEvent(hEvent, hookProc);
 }
Beispiel #5
0
 protected IntPtr HookEvent(string name, MirandaHook hookProc)
 {
     return Plugin.m_HookEvent(name, hookProc);
 }
Beispiel #6
0
 internal static extern int m_SetHookDefaultForHookableEvent(IntPtr hEvent, MirandaHook hookProc);
Beispiel #7
0
 internal static extern IntPtr m_HookEvent(string name, MirandaHook hookProc);