Back to index

im-sdk  12.3.91
Functions | Variables
fop_test.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "config.h"
#include <syscfg.h>
#include "SunIM.h"
#include "SunIMMMan.h"
#include "SunIMProt.h"
#include "SunIMMthd.h"
#include "SunIMPriv.h"
#include "SunIMCore.h"
#include "SunIMPub.h"
#include "fop_test.h"

Go to the source code of this file.

Functions

static Bool if_fop_test_OpenIF (iml_if_t *)
static Bool if_fop_test_CloseIF (iml_if_t *)
static Bool if_fop_test_GetIFValues (iml_if_t *, IMArgList, int)
static Bool if_fop_test_SetIFValues (iml_if_t *, IMArgList, int)
static Bool if_fop_test_OpenDesktop (iml_desktop_t *, IMArgList, int)
static Bool if_fop_test_CloseDesktop (iml_desktop_t *)
static Bool if_fop_test_CreateSC (iml_session_t *, IMArgList, int)
static Bool if_fop_test_DestroySC (iml_session_t *)
static Bool if_fop_test_GetSCValues (iml_session_t *, IMArgList, int)
static Bool if_fop_test_SetSCValues (iml_session_t *, IMArgList, int)
static IMTextif_fop_test_ResetSC (iml_session_t *)
static void if_fop_test_SetSCFocus (iml_session_t *)
static void if_fop_test_UnsetSCFocus (iml_session_t *)
static void if_fop_test_SendEvent (iml_session_t *, IMInputEvent *ev)
void if_GetIfInfo (IMArgList args, int num_args)

Variables

static if_methods_t if_methods
static UTFCHAR lename_string []
static UTFCHAR jahrn_string []
static IMLEName lename
static IMLocale locales []

Function Documentation

static Bool if_fop_test_CloseDesktop ( iml_desktop_t desktop) [static]

Definition at line 260 of file fop_test.c.

{
    return True;
}
static Bool if_fop_test_CloseIF ( iml_if_t If) [static]

Definition at line 154 of file fop_test.c.

{
    return True;
}
static Bool if_fop_test_CreateSC ( iml_session_t s,
IMArgList  args,
int  num_args 
) [static]

Definition at line 269 of file fop_test.c.

{
    return True;
}
static Bool if_fop_test_DestroySC ( iml_session_t s) [static]

Definition at line 280 of file fop_test.c.

{
    return True;
}
static Bool if_fop_test_GetIFValues ( iml_if_t If,
IMArgList  args,
int  num_args 
) [static]

Definition at line 163 of file fop_test.c.

{
    return True;
}
static Bool if_fop_test_GetSCValues ( iml_session_t s,
IMArgList  args,
int  num_args 
) [static]

Definition at line 289 of file fop_test.c.

{
    return True;
}
static Bool if_fop_test_OpenDesktop ( iml_desktop_t desktop,
IMArgList  args,
int  num_args 
) [static]

Definition at line 185 of file fop_test.c.

{
    int i;

    printf("if_fop_test_OpenDesktop()\n");
    printf("  This method is invoked when the user start to use\n");
    printf("  the desktop, which means the first connection.\n");
    
    printf("\n");
    printf("  user [%s@%s] is entered\n",
        desktop->user_name,
        desktop->host_name);
    printf("\n");

    printf("  The additional info of IM client are\n");

    for (i = 0; i < num_args; i++, args++) {
        switch (args->id) {
            case UI_USER_NAME:
                if (args->value) {
                    printf("       UI_USER_NAME=%s\n", args->value);
                }
                break;
            case UI_HOST_NAME:
                if (args->value) {
                    printf("       UI_HOST_NAME=%s\n", args->value);
                }
                break;
            case UI_DISPLAY_ID:
                if (args->value) {
                    printf("       UI_DISPLAY_ID=%s\n", args->value);
                }
                break;
            case UI_PROTOCOL_TYPE:
                if (args->value) {
                    printf("       UI_PROTOCOL_TYPE=%s\n", args->value);
                }
                break;
            case UI_CLIENT_TYPE:
                if (args->value) {
                    printf("       UI_CLIENT_TYPE=%s\n", args->value);
                }
                break;
            case UI_XSERVER_VENDOR:
                if (args->value) {
                    printf("       UI_XSERVER_VENDOR=%s\n", args->value);
                }
                break;
            case UI_OS_NAME:
                if (args->value) {
                    printf("       UI_OS_NAME=%s\n", args->value);
                }
                break;
            case UI_OS_ARCH:
                if (args->value) {
                    printf("       UI_OS_ARCH=%s\n", args->value);
                }
                break;
            case UI_OS_VERSION:
                if (args->value) {
                    printf("       UI_OS_VERSION=%s\n", args->value);
                }
                break;
            }
    }
    
    return True;
}
static Bool if_fop_test_OpenIF ( iml_if_t If) [static]

Definition at line 145 of file fop_test.c.

{
    return True;
}
static IMText * if_fop_test_ResetSC ( iml_session_t s) [static]

Definition at line 311 of file fop_test.c.

{
    return (IMText *)NULL;
}
static void if_fop_test_SendEvent ( iml_session_t s,
IMInputEvent ev 
) [static]

Definition at line 337 of file fop_test.c.

{
    if (IM_EventKeyList == ev->type) {
    }
}
static Bool if_fop_test_SetIFValues ( iml_if_t If,
IMArgList  args,
int  num_args 
) [static]

Definition at line 174 of file fop_test.c.

{
    return True;
}
static void if_fop_test_SetSCFocus ( iml_session_t s) [static]

Definition at line 320 of file fop_test.c.

Here is the call graph for this function:

static Bool if_fop_test_SetSCValues ( iml_session_t s,
IMArgList  args,
int  num_args 
) [static]

Definition at line 300 of file fop_test.c.

{
    return True;
}
static void if_fop_test_UnsetSCFocus ( iml_session_t s) [static]

Definition at line 329 of file fop_test.c.

{
}
void if_GetIfInfo ( IMArgList  args,
int  num_args 
)

Definition at line 111 of file fop_test.c.

{
    int i;

    for (i = 0; i < num_args; i++, args++) {
        switch (args->id) {
            case IF_VERSION:
                args->value = (IMArgVal) "1.2";
                break;
            case IF_METHOD_TABLE:
                args->value = (IMArgVal)(&if_methods);
                break;
            case IF_LE_NAME:
                args->value = (IMArgVal)(&lename);
                break;
            case IF_SUPPORTED_LOCALES:
                args->value = (IMArgVal)(&locales);
                break;
            case IF_SUPPORTED_OBJECTS:
                break;
            case IF_NEED_THREAD_LOCK:
                args->value = (IMArgVal)(False);
                break;
            default:
                break;
            }
    }
}

Variable Documentation

UTFCHAR jahrn_string[] [static]
Initial value:
 {
    0x65e5,
    0x672c,
    0x8a9e,
    0x0000
}

Definition at line 79 of file fop_test.c.

IMLEName lename [static]
Initial value:
 {
    "fop_test",                    
    lename_string           
}

Definition at line 86 of file fop_test.c.

UTFCHAR lename_string[] [static]
Initial value:
 {
    0x6551,
    0xfa51,
    0x9b52,
    0x1c69,
    0xfb67,
    0x0000
}

Definition at line 67 of file fop_test.c.

IMLocale locales[] [static]
Initial value:
 {
    {
        "ja",               
        jahrn_string        
    },
    {
       NULL,
       NULL
    }
}

Definition at line 91 of file fop_test.c.