亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? kr_messages.h

?? 這是法國Kaleido公司提供了一個手機mmi設計平臺
?? H
字號:
/***************************************************************************
KR_Messages.h  -
-------------------
begin                : Tue Apr 29 2004
copyright            : (C) 2004 by DigitalAirways
email                : info@digitalairways.com
***************************************************************************/

/*
* Copyright (c) 2004 DigitalAirways, sarl. All Rights Reserved.
*
* This software is the confidential and proprietary information of
* DigitalAirways, sarl. ("Confidential Information").  You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with DigitalAirways.
* A copy of this license is included in the licence.txt file included
* in this software package.
*/

/*
**************************************************************
* RELEASE NOTES
**************************************************************
- The times used here are related to the system time.
- The queues are never supposed to contain holes.

**************************************************************
* HISTORY
**************************************************************
-

**************************************************************
* TODO
**************************************************************
-


*/

#ifndef __KR_MESSAGES__
#define __KR_MESSAGES__

#include "EB_Utils.h"

// MESSAGES TYPES:
//  Implementation notes:
//   - when an arg is a pointer whose ownership is supposed to be transferred
//     to the consumer, the flag MFG_DYNARG MUST be used. This allows the
//     system to avoid memory leaks, even for messages whose semantics is not
//     known by any component.

// Internal test message
//  sub: none
//  arg: none
#define MSG_TEST0	0x0001
// Verbose message
//  sub: none
//  arg: none
#define MSG_VERBOSE	0x0002
// A new layout must be loaded as the current model.
//  sub: none
//  arg: URL of the new layout to load
#define MSG_LOADLAYOUT 0x0100 // = 256
// The previous layout (if any) must be loaded as the current model.
//  sub: none
//  arg: none
#define MSG_BACKLAYOUT 0x0101 // = 257
// An action must be processed by the current model.
//  sub: action ID
//  arg: action arg
#define MSG_ACTION	0x0102 // = 258
// An accept must be processed by the current model.
//  sub: none
//  arg: none
#define MSG_ACCEPT	0x0103 // = 259
// A cancel must be processed by the current model.
//  sub: none
//  arg: none
#define MSG_CANCEL	0x0104 // = 260
// The current model must be rendered.
//  sub: none
//  arg: none
#define MSG_RENDER	0x0105 // = 261
// The current model must be activated.
//  sub: none
//  arg: none
#define MSG_ACTIVATE	0x0106 // = 262
// The current layout must be repainted.
//  sub: none
//  arg: none
#define MSG_REPAINT	0x0201 // = 513
// A slot must be repainted.
//  sub: none
//  arg: a pointer on the concerned bitmap
#define MSG_REFBITMAP	0x0202 // = 514
//
// Messages whose value is over this one are considered as user's messages.
// Their semantics is not known by the framework itself, nor any of its
// standard components.
//  sub: none
//  arg: none
#define MSG_USER	0x1000

//
// MESSAGES OPTIONS:
//
// This flag means that the arg is a pointer that must be deleted
// by the consumer of the message.
#define MFG_DYNARG 0x00010000
// This flag means that the message must not be deleted
// when the current layout is changed and the queues are flushed
#define MFG_UNFLUSHABLE 0x00020000


// Default maximum number of pending messages in a queue
#ifndef QUEUE_LEN
#define QUEUE_LEN	20
#endif // ndef QUEUE_LEN


class KRMessage {
public:
	long msgType ;
	long msgSubType ;
	long msgArg ;
	KALEIDO_TIME_TYPE msgScheduled ; // At what time should this message be used ?
	//
	DEFINE_NEW(KRMessage);
	DEFINE_DELETE(KRMessage);
	KRMessage()
	{
	}

	void setValues(long newMsgType, long newMsgSubType, long newMsgArg, KALEIDO_TIME_TYPE newMsgScheduled)
	{
		msgType      = newMsgType;
		msgSubType   = newMsgSubType;
		msgArg       = newMsgArg;
		msgScheduled = newMsgScheduled;
		return ;
	}

	void setValues(KRMessage* from)
	{
		msgType      = from->msgType;
		msgSubType   = from->msgSubType;
		msgArg       = from->msgArg;
		msgScheduled = from->msgScheduled;
		return ;
	}

} ;

typedef KRMessage* pKRMessage ;

class KREBDLIBS_API KRMessages {
private:
	pKRMessage* queueData ;
	int isScheduled ;   // false when the scheduling information is not important for this queue
	int queueLen ;      // Lenght of the queue
	int pQueuePending ;  // Pending messages
	int queueWrite ;    // Next index to write
	int queueRead ;     // Next index to read


/*
<api>
    <class>KRMessages</class>
    <method>findMessage</method>
    <cpp>int findMessage(long msgType);</cpp>
    <descr>
        <p>This method finds the first message found in the queue and whose msgType
	 is the same as the submitted one.
	 It returns the index of the message found, or -1 if  such a message does not yet exist.</p>
    </descr>
</api>
*/
	int findMessage(long msgType);

/*
<api>
    <class>KRMessages</class>
    <method>findMessage</method>
    <cpp>int findMessage(long msgType, long msgSubType</cpp>
    <descr>
        <p>This method finds the first message found in the queue and whose msgType & msgSubType
	 are the same as the submitted ones
 It returns the index of the message found, or -1 if  such a message does not yet exist.</p>
    </descr>
</api>
*/
	int findMessage(long msgType, long msgSubType);

/*
<api>
    <class>KRMessages</class>
    <method>dropMessage</method>
    <cpp>int dropMessage(int index)</cpp>
    <descr>
        <p>This method allows to drop a message.
	 All the messages are moved down in order to fill the free place.
	 It returns the number of free slots.</p>
    </descr>
</api>
*/
	int dropMessage(int index);

/*
<api>
    <class>KRMessages</class>
    <method>insertMessage</method>
    <cpp>int insertMessage(int index, long msgType, long msgSubType, long msgArg, KALEIDO_TIME_TYPE msgScheduled=0)</cpp>
    <descr>
        <p>This method allows to insert a message.
	 All the messages are moved up in order to get the necessary place.
	 It returns the number of free slots, or -1 if there is not enough place to
	 complete the action.</p>
    </descr>
</api>
*/
	int insertMessage(int index, long msgType, long msgSubType, long msgArg, KALEIDO_TIME_TYPE msgScheduled=0);
	//
public:
	DEFINE_NEW(KRMessages);
	DEFINE_DELETE(KRMessages);
	//
	KRMessages(int scheduled=0, int len=QUEUE_LEN) ;

	~KRMessages() ;

	/*
	returns the nb of pending messages in the queue
	*/
	int size() {
		return pQueuePending;
	}

	void setScheduled(int scheduled)
	{ isScheduled = scheduled ; }

/*
<api>
    <class>KRMessages</class>
    <method>pushMessage</method>
    <cpp>int pushMessage(long msgType, long msgSubType, long msgArg, long msgScheduled=0)</cpp>
    <descr>
        <p>This method pushes a message on a queue. If there is no more free space to achieve this action, the message is dropped. It returns the number of free slots, or -1 if there is not enough space to complete the action.</p>
    </descr>
</api>
*/
	int pushMessage(long msgType, long msgSubType, long msgArg, KALEIDO_TIME_TYPE msgScheduled=0) ;

	/*
<api>
    <class>KRMessages</class>
    <method>scheduleMessage</method>
    <cpp>int scheduleMessage(long msgType, long msgSubType, long msgArg, long msgScheduled=0)</cpp>
    <descr>
    <p>This method adds and schedules a new message to a queue. It should only be used for scheduled queues. The message is going to be inserted at the right place in the queue, depending on its msgScheduled arg. If there is no free space, the message is dropped and the method returns -1. Otherwise, the method returns the index of the inserted message.</p>
    </descr>
</api>
*/
	int scheduleMessage(long msgType, long msgSubType, long msgArg, KALEIDO_TIME_TYPE msgScheduled);

/*
<api>
    <class>KRMessages</class>
    <method>addMessage</method>
    <cpp>int addMessage(long msgType, long msgSubType, long msgArg, long msgScheduled=0)</cpp>
    <descr>
    <p>This method adds a new message to a queue. If the queue is scheduled, the new message is scheduled. If the queue is not scheduled, the new message is simply pushed. If there is no free space, the message is dropped and the method returns -1. Otherwise, the method returns the number of free slots.</p>
    </descr>
</api>
*/
	int addMessage(long msgType, long msgSubType, long msgArg, KALEIDO_TIME_TYPE msgScheduled=0);

/*
<api>
    <class>KRMessages</class>
    <method>updateMessage</method>
    <cpp>int updateMessage(long msgType, long msgSubType, long msgArg, long msgScheduled=0)</cpp>
    <descr>
    <p>This method updates the first message found in a queue and whose msgType is the same as the submitted one. If such a message is not yet in the queue, it is created as new one. If such a message is already in the queue:</p>
    <itemlist>
        <item>
            <p>If the queue is scheduled: the queue is updated.</p></item>
        <item>
            <p>If the queue is not scheduled: the message's place is kept if it was already existing. It returns the number of free slots, or -1 if there is not enough space to complete the action.</p></item>
     </itemlist>
     </descr>
</api>
*/
	int updateMessage(long msgType, long msgSubType, long msgArg, KALEIDO_TIME_TYPE msgScheduled=0, int checkEarlier=0);

/*
<kaleidoc>
<filename>KRMessages</filename>
<page>
<api>
    <class>KRMessages</class>
    <method>updateOlderMessage</method>
    <cpp>int updateOlderMessage(long msgType, long msgSubType, long msgArg, long msgScheduled=0)</cpp>
    <descr>
    <p>This method is very similar to updateMessage, but the message is not updated if the same msgType/msgSubType pair is already scheduled for an earlier date.</p>
    </descr>
</api>
</page>
</kaleidoc>
*/
int updateOlderMessage(long msgType, long msgSubType, long msgArg, KALEIDO_TIME_TYPE msgScheduled)
	{
		return updateMessage(msgType, msgSubType, msgArg, msgScheduled, 1) ;
	}


/*
<kaleidoc>
<filename>KRMessages</filename>
<page>
<api>
    <class>KRMessages</class>
    <method>dropMessages</method>
    <cpp>int dropMessages(long msgType, long msgSubType)</cpp>
    <descr>
    <p>This method drops all the messages of the concerned msgType/msgSubType pair.</p>
    </descr>
</api>
</page>
</kaleidoc>
*/
int dropMessages(long msgType, long msgSubType);

/*
<kaleidoc>
<filename>KRMessages</filename>
<page>
<api>
    <class>KRMessages</class>
    <method>popMessage</method>
    <cpp>KRMessage* popMessage()</cpp>
    <descr>
    <p>This method pops the oldest message from a queue. It returns NULL if there is no available message.</p>
    </descr>
</api>
</page>
</kaleidoc>
*/
KRMessage* popMessage();

/*
<kaleidoc>
<filename>KRMessages</filename>
<page>
<api>
    <class>KRMessages</class>
    <method>peekMessage</method>
    <cpp>KRMessage* peekMessage()</cpp>
    <descr>
    <p>This method peeks a message from a queue. The returned message is left in the queue. It returns NULL if there is no available message.</p>
    </descr>
</api>
</page>
</kaleidoc>
*/
KRMessage* peekMessage() ;

	int getPending()
	{ return pQueuePending; }

#ifdef DEV_DEBUG
	void dump(KALEIDO_TIME_TYPE currentTime, pchar prefix= (pchar) "") ;
#endif // def DEV_DEBUG
#ifdef DEV_MONITOR
	void monitor(KALEIDO_TIME_TYPE currentTime,char* prefix) ;
#endif // def DEV_MONITOR
} ;


#endif // ndef __KR_MESSAGES__

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区在线视频| 91影院在线免费观看| 日韩欧美国产一区在线观看| 日韩专区在线视频| 91.成人天堂一区| 肉肉av福利一精品导航| 日韩视频一区二区| 国产一区二区日韩精品| 国产精品天干天干在线综合| 99精品偷自拍| 亚洲成人免费影院| 日韩欧美在线一区二区三区| 国产另类ts人妖一区二区| 中文字幕第一区综合| 91免费观看视频在线| 伊人开心综合网| 91精品国产福利在线观看| 国产一区二区三区蝌蚪| 亚洲色图欧美在线| 91精品国产欧美一区二区成人| 日韩va亚洲va欧美va久久| 精品99999| av一区二区不卡| 亚洲成人动漫在线免费观看| 日韩免费高清电影| 国产成+人+日韩+欧美+亚洲| 亚洲欧美国产毛片在线| 日韩欧美亚洲国产另类| caoporn国产精品| 三级在线观看一区二区| 欧美国产国产综合| 91麻豆精品国产无毒不卡在线观看| 国产经典欧美精品| 亚洲资源在线观看| 国产亚洲综合在线| 色婷婷精品久久二区二区蜜臀av| 美女精品自拍一二三四| 亚洲日本免费电影| 精品久久久久香蕉网| 色综合天天综合网国产成人综合天| 蜜桃一区二区三区在线| ...av二区三区久久精品| 精品免费视频.| 欧美午夜精品久久久久久超碰| 韩国欧美国产1区| 亚洲午夜免费视频| 国产精品―色哟哟| 久久人人爽人人爽| 欧美日韩中文字幕一区二区| 极品美女销魂一区二区三区免费| 欧美在线视频日韩| 国产成人鲁色资源国产91色综| 亚洲蜜桃精久久久久久久| 久久久久久亚洲综合影院红桃| 91免费观看视频| www.欧美色图| 捆绑紧缚一区二区三区视频 | 色呦呦一区二区三区| 青青草国产精品97视觉盛宴| 久久噜噜亚洲综合| 欧美性xxxxx极品少妇| 国产精品888| 日韩在线a电影| 国产精品国产精品国产专区不蜜 | 在线观看91精品国产麻豆| 国产美女精品人人做人人爽| 亚洲已满18点击进入久久| 中文字幕精品一区| 日韩女优制服丝袜电影| 欧洲亚洲精品在线| 91年精品国产| 成年人午夜久久久| 国产高清不卡一区二区| 裸体一区二区三区| 日本va欧美va欧美va精品| 亚洲一区二区三区在线| 国产精品久线在线观看| 国产无一区二区| 久久免费偷拍视频| 欧美在线观看一二区| 欧美色爱综合网| 99久久综合国产精品| 国产精品一线二线三线精华| 美女一区二区视频| 日韩av中文在线观看| 国产欧美日韩综合| 精品国产人成亚洲区| 欧美日韩在线三区| 日本韩国精品在线| 91网站最新网址| 91色婷婷久久久久合中文| 成人国产免费视频| 成人国产精品免费| 99re热这里只有精品免费视频| 成人性生交大片| 成人综合在线视频| 91片在线免费观看| 91国偷自产一区二区三区观看| 色女孩综合影院| 欧洲国产伦久久久久久久| 555www色欧美视频| 欧美电视剧在线看免费| 久久久国产精品麻豆| 中文无字幕一区二区三区| 自拍偷拍亚洲欧美日韩| 亚洲一区二区精品久久av| 亚洲理论在线观看| 亚洲国产精品久久人人爱| 一区二区三区高清在线| 日韩电影在线一区二区| 热久久免费视频| 不卡一区二区三区四区| 97精品久久久午夜一区二区三区| 欧美日韩精品综合在线| 欧美一级理论片| 国产视频一区在线播放| 亚洲视频每日更新| 中文字幕欧美国产| 偷偷要91色婷婷| 狠狠色丁香九九婷婷综合五月| 国产成人午夜片在线观看高清观看 | 色偷偷88欧美精品久久久| 在线观看日产精品| 欧美亚洲动漫制服丝袜| 在线视频一区二区免费| 日韩小视频在线观看专区| 国产日韩欧美一区二区三区乱码 | 日韩精品一区二区三区四区| 亚洲精品一区二区三区在线观看| 欧美国产精品中文字幕| 亚洲已满18点击进入久久| 男女男精品视频网| jlzzjlzz国产精品久久| 欧美久久一二区| 国产网站一区二区三区| 亚洲色图丝袜美腿| 国产精品影视网| 欧美日韩精品系列| 国产免费观看久久| 丝袜a∨在线一区二区三区不卡| 国产河南妇女毛片精品久久久| 欧美视频一二三区| 久久久一区二区三区捆绑**| 亚洲妇女屁股眼交7| 成人小视频在线| 91精品国产乱| 一区二区在线观看免费 | 成人av在线资源网| 91影院在线观看| 欧美精品一区二区精品网| 最新国产精品久久精品| 麻豆视频一区二区| 91久久精品一区二区三| 久久久久综合网| 日韩va欧美va亚洲va久久| 国产69精品久久99不卡| 欧美mv和日韩mv国产网站| 国产精品久久久久久久午夜片| 日韩精品久久理论片| 91原创在线视频| 久久精品夜色噜噜亚洲aⅴ| 亚洲v中文字幕| yourporn久久国产精品| 久久亚洲免费视频| 久久爱www久久做| 欧美剧情片在线观看| 亚洲人成网站色在线观看| 国产成人一区二区精品非洲| 日韩精品一区二区三区在线观看| 亚洲午夜激情网页| 99久久精品国产麻豆演员表| 国产精品日产欧美久久久久| 国产自产v一区二区三区c| 欧美日韩免费一区二区三区 | 国产精品国产三级国产普通话蜜臀| 日本视频免费一区| 9191成人精品久久| 国产精品久久久一本精品| av电影在线观看不卡| 国产欧美日韩三区| 国产激情一区二区三区四区| 精品欧美一区二区在线观看| 国产综合成人久久大片91| 欧美一级免费大片| 中文字幕乱码亚洲精品一区| 成人黄色777网| 国产精品拍天天在线| 成人久久视频在线观看| 中文字幕一区二区不卡| 97超碰欧美中文字幕| 亚洲精品一二三区| 欧美精品一卡二卡| 日本亚洲一区二区| 欧美一区二区三区视频| 免费观看一级欧美片| 欧美不卡123| 成人h动漫精品一区二| 中文字幕一区二区三区精华液| 99国产精品久久| 亚洲国产精品久久久久婷婷884|