Yasumichi Akahoshi
yasum****@users*****
2005年 4月 16日 (土) 03:11:12 JST
Index: libcxp/src/cxp-handler.c diff -u libcxp/src/cxp-handler.c:1.8 libcxp/src/cxp-handler.c:1.9 --- libcxp/src/cxp-handler.c:1.8 Fri Apr 8 19:53:45 2005 +++ libcxp/src/cxp-handler.c Sat Apr 16 03:11:12 2005 @@ -1,10 +1,23 @@ -/*************************************************************************** - * cxp-handler.c +/* $Id: cxp-handler.c,v 1.9 2005/04/15 18:11:12 yasumichi Exp $ */ +/** + * \if japanese + * @file + * @brief cxp-handler.hの内部実装 + * + * @author 赤星 柔充 + * @date Tue Mar 29 2005 + * $Revision: 1.9 $ + * \endif + * \if english + * @file + * @brief Internal mounting of cxp-handler.h * - * Mon Nov 29 23:50:12 2004 - * Copyright 2004 Yasumichi Akahoshi - * yasum****@users***** - ****************************************************************************/ + * @author Yasumichi Akahoshi + * @date Tue Mar 29 2005 + * $Revision: 1.9 $ + * \endif + */ + /* * This program is free software; you can redistribute it and/or modify @@ -35,7 +48,6 @@ /** * @brief private member of CxpHandler */ - typedef struct { CxpProfile *profile; @@ -83,21 +95,6 @@ } /** - * base init CxpHandler - * - */ -static void cxp_handler_init (GTypeInstance * instance, gpointer g_class) -{ - CxpHandlerPrivate *priv = CXP_HANDLER_GET_PRIVATE(instance); - - bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - - priv->profile = cxp_profile_new ("common", "handler"); - priv->dispose_has_run = FALSE; -} - -/** * class init CxpHandlerClass * */ @@ -112,6 +109,21 @@ parent_class = g_type_class_peek_parent (g_class); } +/** + * base init CxpHandler + * + */ +static void cxp_handler_init (GTypeInstance * instance, gpointer g_class) +{ + CxpHandlerPrivate *priv = CXP_HANDLER_GET_PRIVATE(instance); + + bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + + priv->profile = cxp_profile_new ("common", "handler"); + priv->dispose_has_run = FALSE; +} + static void cxp_handler_dispose (GObject * obj) { @@ -133,6 +145,17 @@ G_OBJECT_CLASS (parent_class)->finalize (obj); } + +/** + * \if japanese + * CxpHandlerを生成します。 + * @return 新しいCxpHandler + * \endif + * \if english + * CxpHandler is generated. + * @return New CxpHandler + * \endif + */ CxpHandler *cxp_handler_new (void) { CxpHandler *handler; @@ -142,6 +165,19 @@ return handler; } +/** + * \if japanese + * ファイル名fullpathの拡張子を元に関連づけられたアプリケーションを起動します。 + * @param [in] handler CxpHandler + * @param [in] fullpath ファイルの絶対パス + * \endif + * \if english + * The application related based on the extension of file name fullpath is + * started. + * @param [in] handler CxpHandler + * @param [in] fullpath Absolute path of file + * \endif + */ void cxp_handler_launch (CxpHandler * handler, const gchar * fullpath) { CxpHandlerPrivate *priv = CXP_HANDLER_GET_PRIVATE(handler);