Sha256: 3164af7c83a87a1ba0020b3329aadcac0dd7c58027a2b929584c1c084a8fc2db

Contents?: true

Size: 956 Bytes

Versions: 66

Compression:

Stored size: 956 Bytes

Contents

#ifndef __APP_MENU__H__
#define __APP_MENU__H__

#define APP_MENU_ITEMS_MAX 32 //maximus number of items app menu can contain

#ifdef __cplusplus

#include "logging/RhoLog.h"

namespace rho {
namespace common {

struct CAppMenuItem 
{
    enum EnumMenuType { emtNone = 0, emtSeparator, emtUrl, emtRefresh, emtHome, emtBack, emtSync, emtOptions, emtLog, emtExit,
        emtClose, emtFullscreen };
	String m_strLabel;
	String m_strLink;
	EnumMenuType  m_eType;

    CAppMenuItem (const String &label, const String &link);
    boolean processCommand();
};

class CAppMenu
{
	DEFINE_LOGCLASS;

    common::CMutex m_mxAppMenu;
	Vector<CAppMenuItem> m_arAppMenuItems;

public:
    void setAppMenu(unsigned long valMenu);
    void copyMenuItems(Vector<CAppMenuItem>& arAppMenuItems);

//private:
    void addAppMenuItem( const String& strLabel, const String& strLink );

};

} //namespace common
} //namespace rho

#endif //__cplusplus

#endif //__WEB_VIEW__H__

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
rhodes-2.2.3.beta.1 platform/shared/common/AppMenu.h
rhodes-2.2.2 platform/shared/common/AppMenu.h
rhodes-2.2.2.beta.1 platform/shared/common/AppMenu.h
rhodes-2.2.1 platform/shared/common/AppMenu.h
rhodes-2.2.1.beta.2 platform/shared/common/AppMenu.h
rhodes-2.2.1.beta.1 platform/shared/common/AppMenu.h
rhodes-2.2.0 platform/shared/common/AppMenu.h
rhodes-2.2.0.beta.3 platform/shared/common/AppMenu.h
rhodes-2.2.0.beta.2 platform/shared/common/AppMenu.h
rhodes-2.2.0.beta.1 platform/shared/common/AppMenu.h
rhodes-2.1.0 platform/shared/common/AppMenu.h
rhodes-2.0.3 platform/shared/common/AppMenu.h
rhodes-2.0.2 platform/shared/common/AppMenu.h
rhodes-2.0.0 platform/shared/common/AppMenu.h
rhodes-2.0.0.rc2 platform/shared/common/AppMenu.h
rhodes-2.0.0.rc1 platform/shared/common/AppMenu.h
rhodes-2.0.0.beta11 platform/shared/common/AppMenu.h
rhodes-2.0.0.beta10 platform/shared/common/AppMenu.h
rhodes-2.0.0.beta9 platform/shared/common/AppMenu.h
rhodes-2.0.0.beta8 platform/shared/common/AppMenu.h