• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ ekiga::MenuBuilder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中ekiga::MenuBuilder的典型用法代码示例。如果您正苦于以下问题:C++ MenuBuilder类的具体用法?C++ MenuBuilder怎么用?C++ MenuBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了MenuBuilder类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1:

bool
OPENLDAP::Source::populate_menu (Ekiga::MenuBuilder &builder)
{
    builder.add_action ("add", _("Add an LDAP Address Book"),
                        sigc::mem_fun (this, &OPENLDAP::Source::new_book));
    builder.add_action ("add", _("Add the Ekiga.net Directory"),
                        sigc::mem_fun (this, &OPENLDAP::Source::new_ekiga_net_book));
    return true;
}
开发者ID:sameersethi,项目名称:minorproject-ekiga,代码行数:9,代码来源:ldap-source.cpp


示例2:

bool
RL::Heap::populate_menu (Ekiga::MenuBuilder& builder)
{
    builder.add_action ("add", _("_Add a new contact"),
                        boost::bind (&RL::Heap::new_entry, this));
    builder.add_action ("refresh", _("_Refresh contact list"),
                        boost::bind (&RL::Heap::refresh, this));
    builder.add_action ("properties", _("Contact list _properties"),
                        boost::bind (&RL::Heap::edit, this));
    return true;
}
开发者ID:GNOME,项目名称:ekiga,代码行数:11,代码来源:rl-heap.cpp


示例3:

bool
RL::Heap::populate_menu (Ekiga::MenuBuilder& builder)
{
  builder.add_action ("add", _("_Add a new contact"),
		      sigc::mem_fun (this, &RL::Heap::new_entry));
  builder.add_action ("refresh", _("_Refresh contact list"),
		      sigc::mem_fun (this, &RL::Heap::refresh));
  builder.add_action ("properties", _("Contact list _properties"),
		      sigc::mem_fun (this, &RL::Heap::edit));
  return true;
}
开发者ID:NeoWing,项目名称:ekiga-3.2.7,代码行数:11,代码来源:rl-heap.cpp


示例4:

bool Opal::Bank::populate_menu (Ekiga::MenuBuilder & builder)
{
  builder.add_action ("add", _("_Add an Ekiga.net Account"),
		      sigc::bind (sigc::mem_fun (this, &Opal::Bank::new_account), Opal::Account::Ekiga, "", ""));
  builder.add_action ("add", _("_Add an Ekiga Call Out Account"),
		      sigc::bind (sigc::mem_fun (this, &Opal::Bank::new_account), Opal::Account::DiamondCard, "", ""));
  builder.add_action ("add", _("_Add a SIP Account"),
		      sigc::bind (sigc::mem_fun (this, &Opal::Bank::new_account), Opal::Account::SIP, "", ""));
  builder.add_action ("add", _("_Add an H.323 Account"),
		      sigc::bind (sigc::mem_fun (this, &Opal::Bank::new_account), Opal::Account::H323, "", ""));

  return true;
}
开发者ID:nightfly19,项目名称:renyang-learn,代码行数:13,代码来源:opal-bank.cpp


示例5:

bool
Opal::Bank::populate_menu (Ekiga::MenuBuilder & builder)
{
  builder.add_action ("add", _("_Add an Ekiga.net Account"),
		      boost::bind (&Opal::Bank::new_account, this, Opal::Account::Ekiga, "", ""));
  builder.add_action ("add", _("_Add an Ekiga Call Out Account"),
		      boost::bind (&Opal::Bank::new_account, this, Opal::Account::DiamondCard, "", ""));
  builder.add_action ("add", _("_Add a SIP Account"),
		      boost::bind (&Opal::Bank::new_account, this, Opal::Account::SIP, "", ""));
#ifdef HAVE_H323
  builder.add_action ("add", _("_Add an H.323 Account"),
		      boost::bind (&Opal::Bank::new_account, this, Opal::Account::H323, "", ""));
#endif

  return true;
}
开发者ID:Klom,项目名称:ekiga,代码行数:16,代码来源:opal-bank.cpp


示例6:

bool
Local::Heap::populate_menu (Ekiga::MenuBuilder &builder)
{
  builder.add_action ("add", _("A_dd Contact"),
		      boost::bind (&Local::Heap::new_presentity, this, "", ""));
  return true;
}
开发者ID:UIKit0,项目名称:ekiga,代码行数:7,代码来源:local-heap.cpp


示例7:

bool
LM::HeapRoster::populate_menu (Ekiga::MenuBuilder& builder)
{
  builder.add_action ("add", _("A_dd Contact"), boost::bind (&LM::HeapRoster::add_item, this));
  dialect->populate_menu (builder);
  return true;
}
开发者ID:GNOME,项目名称:ekiga,代码行数:7,代码来源:loudmouth-heap-roster.cpp


示例8:

bool
Opal::Sip::EndPoint::populate_menu (const std::string& fullname,
				    const std::string& uri,
				    Ekiga::MenuBuilder& builder)
{
  if (0 == GetConnectionCount ())
    builder.add_action ("phone-pick-up", _("Call"),
			boost::bind (&Opal::Sip::EndPoint::on_dial, this, uri));
  else
    builder.add_action ("mail-forward", _("Transfer"),
			boost::bind (&Opal::Sip::EndPoint::on_transfer, this, uri));
  builder.add_action ("im-message-new", _("Message"),
		      boost::bind (&Opal::Sip::EndPoint::on_message, this, uri, fullname));

  return true;
}
开发者ID:Klom,项目名称:ekiga,代码行数:16,代码来源:sip-endpoint.cpp


示例9:

bool
LM::Bank::populate_menu (Ekiga::MenuBuilder& builder)
{
  builder.add_action ("add", _("_Add a Jabber/XMPP Account"),
		      boost::bind (&LM::Bank::new_account, this));
  return true;
}
开发者ID:Klom,项目名称:ekiga,代码行数:7,代码来源:loudmouth-bank.cpp


示例10:

bool
Local::Heap::populate_menu (Ekiga::MenuBuilder &builder)
{
  builder.add_action ("new", _("New contact"),
		      sigc::bind (sigc::mem_fun (this, &Local::Heap::new_presentity), "", ""));
  return true;
}
开发者ID:NeoWing,项目名称:ekiga-3.2.7,代码行数:7,代码来源:local-heap.cpp


示例11:

bool
RL::Cluster::populate_menu (Ekiga::MenuBuilder& builder)
{
  builder.add_action ("add", _("Add resource list"),
		      boost::bind (&RL::Cluster::new_heap, this,
				   "", "", "", "", "", false));
  return true;
}
开发者ID:dwbxm,项目名称:ekiga,代码行数:8,代码来源:rl-cluster.cpp


示例12:

bool
Echo::Dialect::populate_menu (Ekiga::MenuBuilder &builder)

{
  builder.add_action ("FIXME", "New echo", boost::bind (&Echo::Dialect::new_chat, this));

  return true;
}
开发者ID:NpNike,项目名称:ekiga,代码行数:8,代码来源:echo-dialect.cpp


示例13:

bool
Echo::Dialect::populate_menu (Ekiga::MenuBuilder &builder)

{
  builder.add_action ("FIXME", "New echo", sigc::mem_fun (this, &Echo::Dialect::new_chat));

  return true;
}
开发者ID:nightfly19,项目名称:renyang-learn,代码行数:8,代码来源:echo-dialect.cpp


示例14:

bool
RL::Presentity::populate_menu (Ekiga::MenuBuilder &builder)
{
    bool populated = false;
    boost::shared_ptr<Ekiga::PresenceCore> presence_core(services.get<Ekiga::PresenceCore> ("presence-core"));

    populated = presence_core->populate_presentity_menu (PresentityPtr (this, null_deleter ()), uri, builder);

    if (writable) {

        if (populated)
            builder.add_separator ();

        builder.add_action ("edit", _("_Edit"),
                            boost::bind (&RL::Presentity::edit_presentity, this));
        builder.add_action ("remove", _("_Remove"),
                            boost::bind (&RL::Presentity::remove, this));
    }

    return true;
}
开发者ID:brownsys,项目名称:pane-ekiga,代码行数:21,代码来源:rl-presentity.cpp


示例15:

bool
LM::Account::populate_menu (Ekiga::MenuBuilder& builder)
{
  if (lm_connection_is_open (connection)) {

    builder.add_action ("user-offline", _("_Disable"),
			boost::bind (&LM::Account::disable, this));
  } else {

    builder.add_action ("user-available", _("_Enable"),
			boost::bind (&LM::Account::enable, this));
  }

  builder.add_separator ();

  builder.add_action ("gtk-edit", _("Edit"),
		      boost::bind (&LM::Account::edit, this));
  builder.add_action ("gtk-remove", _("_Remove"),
		      boost::bind (&LM::Account::remove, this));

  return true;
}
开发者ID:Pobegunchik,项目名称:ekiga,代码行数:22,代码来源:loudmouth-account.cpp


示例16:

bool
Local::Presentity::populate_menu (Ekiga::MenuBuilder &builder)
{
  bool populated = false;
  boost::shared_ptr<Ekiga::PresenceCore> pcore = presence_core.lock ();

  if (!pcore)
    return false;

  populated
    = pcore->populate_presentity_menu (PresentityPtr(this, null_deleter ()),
				       get_uri (), builder);

  if (populated)
    builder.add_separator ();

  builder.add_action ("edit", _("_Edit"),
		      boost::bind (&Local::Presentity::edit_presentity, this));
  builder.add_action ("remove", _("_Remove"),
		      boost::bind (&Local::Presentity::remove, this));

  return true;
}
开发者ID:Klom,项目名称:ekiga,代码行数:23,代码来源:local-presentity.cpp


示例17: uri

bool
RL::Entry::populate_menu (Ekiga::MenuBuilder& builder)
{
  bool populated = false;
  boost::shared_ptr<Ekiga::PresenceCore> presence_core = core.get<Ekiga::PresenceCore> ("presence-core");
  std::string uri(get_uri ());

  builder.add_action ("refresh", _("_Refresh"),
		      boost::bind (&RL::Entry::refresh, this));

  if ( !uri.empty ())
    populated = presence_core->populate_presentity_menu (Ekiga::PresentityPtr (this, null_deleter ()), uri, builder);

  return populated;
}
开发者ID:GNOME,项目名称:ekiga,代码行数:15,代码来源:rl-entry.cpp


示例18:

bool
Local::ContactDecorator::populate_menu (Ekiga::Contact &contact,
					const std::string uri,
					Ekiga::MenuBuilder &builder)
{
  bool populated = false;

  if (cluster.is_supported_uri (uri)) {

    Heap &heap = cluster.get_heap ();

    if (!heap.has_presentity_with_uri (uri)) {

      builder.add_action ("add", _("Add to local roster"),
			  sigc::bind (sigc::mem_fun (heap, &Local::Heap::new_presentity),
				      contact.get_name (), uri));
      populated = true;
    }
  }

  return populated;
}
开发者ID:nightfly19,项目名称:renyang-learn,代码行数:22,代码来源:local-roster-bridge.cpp


示例19: heap

bool
Local::ContactDecorator::populate_menu (Ekiga::ContactPtr contact,
					const std::string uri,
					Ekiga::MenuBuilder &builder)
{
  bool populated = false;

  if (cluster->is_supported_uri (uri)) {

    HeapPtr heap(cluster->get_heap ());

    if (!heap->has_presentity_with_uri (uri)) {

      builder.add_action ("add", _("Add to local roster"),
			  boost::bind (&Local::Heap::new_presentity, heap.get (),
			  contact->get_name (), uri));
      populated = true;
    }
  }

  return populated;
}
开发者ID:Klom,项目名称:ekiga,代码行数:22,代码来源:local-roster-bridge.cpp


示例20:

bool
OPENLDAP::Contact::populate_menu (Ekiga::MenuBuilder &builder)
{
  boost::shared_ptr<Ekiga::ContactCore> contact_core = core.get<Ekiga::ContactCore> ("contact-core");
  /* FIXME: add here the specific actions we want to allow
   * (before or after the uri-specific actions)
   */

  Ekiga::TemporaryMenuBuilder tmp_builder;

  bool result = false;
  for (std::map<std::string, std::string>::const_iterator iter
	 = uris.begin ();
       iter != uris.end ();
       iter++) {
    if (contact_core->populate_contact_menu (ContactPtr(this, null_deleter ()),
					     iter->second, tmp_builder)) {
      builder.add_ghost ("", iter->first);
      tmp_builder.populate_menu (builder);
      result = true;
    }
  }
  return result;
}
开发者ID:Pobegunchik,项目名称:ekiga,代码行数:24,代码来源:ldap-contact.cpp



注:本文中的ekiga::MenuBuilder类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ ekiga::ServiceCore类代码示例发布时间:2022-05-31
下一篇:
C++ ekiga::KickStart类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap