home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / PrefsDialogAppl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.4 KB  |  84 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /* ** */
  19. #ifndef __xfe_prefsdialogappl_h
  20. #define __xfe_prefsdialogappl_h
  21.  
  22. #include <X11/Intrinsic.h>
  23. #include "xeditor.h"
  24. #include "PrefsData.h"
  25.  
  26. #ifdef    __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. extern char   *xfe_prefsDialogAppl_addCommand(char *buf, char *command);
  31. extern void   xfe_prefsDialogAppl_add_new_mailcap_data(char *contenttype,
  32.                          char* src_str,
  33.                          char *command, 
  34.                          char *xmode,
  35.                          Boolean isLocal);
  36. extern void   xfe_prefsDialogAppl_insert_type_at_pos(PrefsDataGeneralAppl *fep,
  37.                          NET_cdataStruct *cd_item, 
  38.                          NET_mdataStruct *md,
  39.                          int pos);
  40. extern void   xfe_prefsDialogAppl_append_type_to_list(PrefsDataGeneralAppl *fep,
  41.                          NET_cdataStruct *cd_item, 
  42.                          NET_mdataStruct *md,
  43.                          int pos);
  44. extern void     xfe_prefsDialogAppl_build_exts(char *ext, NET_cdataStruct *cd);
  45. extern void     xfe_prefsDialogAppl_build_handle(PrefsDataApplEdit *fep);
  46. extern void     xfe_prefsDialogAppl_build_mime_list(PrefsDataGeneralAppl *fep);
  47. extern NET_cdataStruct *xfe_prefsDialogAppl_can_combine(NET_cdataStruct *new_cd, int* old_pos);
  48. extern char     *xfe_prefsDialogAppl_construct_new_mailcap_string(
  49.                          NET_mdataStruct *md,
  50.                          char* contenttype,
  51.                          char *command,
  52.                          char *flag);
  53. extern char            *xfe_prefsDialogAppl_construct_new_mime_string(NET_cdataStruct *new_cd);
  54. extern char            *xfe_prefsDialogAppl_deleteCommand(char *buf);
  55. extern NET_mdataStruct *xfe_prefsDialogAppl_get_mailcap_from_type(char *type);
  56. extern NET_cdataStruct *xfe_prefsDialogAppl_get_mime_data_at_pos(int pos);
  57. extern Boolean          xfe_prefsDialogAppl_get_mime_data_real_pos(
  58.                          NET_cdataStruct *old_cd, 
  59.                          int *real_pos);
  60. extern Bool             xfe_prefsDialogAppl_handle_by_netscape(char *type);
  61. extern Bool             xfe_prefsDialogAppl_handle_by_saveToDisk(char *type);
  62. extern Boolean          xfe_prefsDialogAppl_is_deleted_type(NET_cdataStruct *cd_item);
  63. extern char            *xfe_prefsDialogAppl_replace_new_mime_string(
  64.                          NET_cdataStruct *old_cd, 
  65.                          NET_cdataStruct *new_cd);
  66. extern char            *xfe_prefsDialogAppl_updateKey(char *buf,
  67.                               char *key,
  68.                               char *newVal,
  69.                               Boolean hasSep);
  70.  
  71. extern void             xfe_prefsDialogAppl_build_static_list(PrefsDataGeneralAppl *fep);
  72. extern char            *xfe_prefsAppl_get_static_app_command(int index);
  73. extern void             xfe_prefsAppl_set_static_app_command(int index, char *command);
  74. extern char            *xfe_prefsAppl_get_static_app_desc(int index);
  75. extern int              xfe_prefsAppl_get_static_app_count();
  76.  
  77. #ifdef    __cplusplus
  78. }
  79. #endif
  80.  
  81. #endif
  82.  
  83.  
  84.