⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 btobjectexchange.rss

📁 This C++ code example provides a method for transferring objects or chunks of data from one device
💻 RSS
字号:
/* Copyright (c) 2004, Nokia. All rights reserved */

NAME BTOB

#include <eikon.rh>
#include <eikon.rsg>
#include <avkon.rh>
#include <avkon.rsg>

#include "BTObjectExchange.hrh"
#include "BTObjectExchange.loc"

#include <commondialogs.hrh>  //FILESELECTIONDIALOG
#include <commondialogs.rh>

// ----------------------------------------------------------------------------
//   
//    Define the resource file signature 
//    This resource should be empty.
//
// ----------------------------------------------------------------------------
//
RESOURCE RSS_SIGNATURE { }

// ----------------------------------------------------------------------------
//   
//    Default Document Name
//
// ----------------------------------------------------------------------------
//
RESOURCE TBUF { buf=""; }

// ----------------------------------------------------------------------------
//   
//    Define default menu and CBA key.
//
// ----------------------------------------------------------------------------
//
RESOURCE EIK_APP_INFO
    {
    menubar = r_btobjectexchange_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }


// ----------------------------------------------------------------------------
//   
//   r_btobjectexchange_menubar
//   Menubar for BTObjectExchange example
//
// ----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_btobjectexchange_menubar
    {
    titles =
        {
        MENU_TITLE {menu_pane = r_btobjectexchange_menu;}
        };
    }


// ----------------------------------------------------------------------------
//   
//   r_btobjectexchange_menu
//   Menu for "Options"
//
// ----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_btobjectexchange_menu
    {
    items = 
        {
        MENU_ITEM 
            { 
                command = EBTObjectExchangeStartServer;  
                txt = qtn_btob_start_server; 
            },
        MENU_ITEM 
            { 
                command = EBTObjectExchangeStopServer;  
                txt = qtn_btob_stop_server; 
            },
        MENU_ITEM 
            { 
                command = EBTObjectExchangeConnect;  
                txt = qtn_btob_exchange_connect; 
            },
        MENU_ITEM 
            { 
                command = EBTObjectExchangeSendMessage;  
                txt = qtn_btob_send_object; 
            },
        MENU_ITEM 
            { 
                command = EBTObjectExchangeDisconnect;  
                txt = qtn_btob_disconnect; 
            },
        MENU_ITEM 
            { 
                command = EBTObjectExchangeClearList;  
                txt = qtn_btob_clear_list; 
            },
	  #ifndef EKA2
        MENU_ITEM { command=ESendViaSendUi; txt=qtn_btob_sendui; cascade=r_btobex_sendui_menu;},
        #endif

        MENU_ITEM 
            { 
                command = EAknSoftkeyExit;   
                txt = qtn_btob_softkey_exit; 
            }
        };
    }

//----------------------------------------------------
//   
//    r_btobex_sendui_menu
//	  Empty menu pane for send UI menu items; 
//    content is delivered in DynInitMenuPaneL
//----------------------------------------------------
//
RESOURCE MENU_PANE r_btobex_sendui_menu
    {
    items=
        {
        };
    }
// ----------------------------------------------------------------------------
// Resources for messages
// ----------------------------------------------------------------------------

RESOURCE TBUF r_btob_err_no_records
    {
        buf = qtn_btob_err_no_records;
    }

RESOURCE TBUF r_btob_err_cant_get_attribute
    {
        buf = qtn_btob_err_cant_get_attribute;
    }

RESOURCE TBUF r_btob_err_attr_req_com
    {
        buf = qtn_btob_err_attr_req_com;
    }

RESOURCE TBUF r_btob_service_description
    {
        buf = qtn_btob_service_description;
    }

RESOURCE TBUF r_btob_error_prefix
    {
        buf = qtn_btob_error_prefix;
    }

RESOURCE TBUF r_btob_connected
    {
        buf = qtn_btob_connected;
    }

RESOURCE TBUF r_btob_server_stopped
    {
        buf = qtn_btob_server_stopped;
    }

RESOURCE TBUF r_btob_server_started
    {
        buf = qtn_btob_server_started;
    }

RESOURCE TBUF r_btob_str_failed
    {
        buf = qtn_btob_str_failed;
    }

RESOURCE TBUF r_btob_hello
    {
        buf = qtn_btob_hello;
    }

RESOURCE TBUF r_btob_no_device
    {
        buf = qtn_btob_no_device;
    }

RESOURCE TBUF r_btob_connection_error
    {
        buf = qtn_btob_connection_error;
    }

RESOURCE TBUF r_btob_send_error
    {
        buf = qtn_btob_send_error;
    }

RESOURCE TBUF r_btob_found_service
    {
        buf = qtn_btob_found_service;
    }

RESOURCE TBUF r_btob_sent_object
    {
        buf = qtn_btob_sent_object;
    }

RESOURCE TBUF r_btob_disconnected
    {
        buf = qtn_btob_disconnected;
    }

RESOURCE TBUF r_btob_client_busy
    {
        buf = qtn_btob_client_busy;
    }

RESOURCE TBUF r_btob_disconnecting
    {
        buf = qtn_btob_disconnecting;
    }

RESOURCE TBUF r_btob_no_bt 
    { 
        buf = qtn_btob_no_bt; 
    }
    
RESOURCE FILESELECTIONDIALOG r_file_selection_dialog_c 
{ 
 title = "Select:"; 
 root_path = "C:\\"; 
 }

RESOURCE FILESELECTIONDIALOG r_file_selection_dialog_e 
{ 
 title = "Select:"; 
 root_path = "E:\\"; 
}
    

// End of File

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -