0
|
1 |
/*
|
|
2 |
#
|
|
3 |
# CDDL HEADER START
|
|
4 |
#
|
|
5 |
# The contents of this file are subject to the terms of the
|
|
6 |
# Common Development and Distribution License (the "License").
|
|
7 |
# You may not use this file except in compliance with the License.
|
|
8 |
#
|
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
10 |
# or http://www.opensolaris.org/os/licensing.
|
|
11 |
# See the License for the specific language governing permissions
|
|
12 |
# and limitations under the License.
|
|
13 |
#
|
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
16 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
19 |
#
|
|
20 |
# CDDL HEADER END
|
|
21 |
#
|
|
22 |
*/
|
|
23 |
|
|
24 |
/*
|
|
25 |
#
|
|
26 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
27 |
# Use is subject to license terms.
|
|
28 |
#
|
|
29 |
*/
|
|
30 |
|
|
31 |
#ifndef _PRE_DIALOG_H
|
|
32 |
#define _PRE_DIALOG_H
|
|
33 |
|
|
34 |
#define CMDASSIST_GCONF_DIR "/apps/commandAssistant"
|
|
35 |
#define CMDASSIST_GCONF_RESULT_SIZE CMDASSIST_GCONF_DIR "/result_size"
|
|
36 |
#define CMDASSIST_GCONF_SEARCH_COMMAND CMDASSIST_GCONF_DIR "/search_command"
|
|
37 |
#define CMDASSIST_GCONF_SEARCH_TITLE CMDASSIST_GCONF_DIR "/search_title"
|
|
38 |
#define CMDASSIST_GCONF_SEARCH_CONTENT CMDASSIST_GCONF_DIR "/search_content"
|
|
39 |
#define CMDASSIST_GCONF_SYSTEM_LANGUAGEID CMDASSIST_GCONF_DIR "/localeID"
|
|
40 |
#define CMDASSIST_GCONF_SYSTEM_LANGUAGE CMDASSIST_GCONF_DIR "/locale"
|
|
41 |
#define CMDASSIST_GCONF_DOC_LIST CMDASSIST_GCONF_DIR "/doc_list"
|
|
42 |
|
|
43 |
#define CMDASSIST_WSDL "http://services.learning.sun.com/commandassistant/Engine?wsdl"
|
|
44 |
#define CMDASSIST_URL "http://docs.sun.com/"
|
|
45 |
|
|
46 |
struct config_criteria_t {
|
|
47 |
|
|
48 |
gboolean command;
|
|
49 |
gboolean title;
|
|
50 |
gboolean content;
|
|
51 |
gdouble result_size;
|
|
52 |
};
|
|
53 |
|
|
54 |
struct config_system_t {
|
|
55 |
gint languageID;
|
|
56 |
gchar language[20];
|
|
57 |
};
|
|
58 |
|
|
59 |
struct config_doc_t {
|
|
60 |
gint size;
|
|
61 |
gchar docs[300];
|
|
62 |
};
|
|
63 |
|
|
64 |
typedef struct config_criteria_t config_criteria;
|
|
65 |
typedef struct config_system_t config_system;
|
|
66 |
typedef struct config_doc_t config_doc;
|
|
67 |
|
|
68 |
typedef struct {
|
|
69 |
gchar doc_name[20];
|
|
70 |
gchar doc_des[100];
|
|
71 |
|
|
72 |
}cmd_doc_list;
|
|
73 |
|
|
74 |
struct cmdassist_config_t {
|
|
75 |
config_criteria criteria;
|
|
76 |
config_system system;
|
|
77 |
config_doc doc;
|
|
78 |
};
|
|
79 |
|
|
80 |
typedef struct cmdassist_config_t cmdassist_config;
|
|
81 |
|
|
82 |
void load_config(cmdassist_config* );
|
|
83 |
|
|
84 |
void create_pre_dialog();
|
|
85 |
|
|
86 |
#endif /* _PRE_DIALOG_H */
|