📄 notifycommon.h
字号:
/*
002 Copyright (C) 2004 Mika Raento - Renaud Petit
003
004 This program is free software; you can redistribute it and/or modify
005 it under the terms of the GNU General Public License as published by
006 the Free Software Foundation; either version 2 of the License, or
007 (at your option) any later version.
008
009 This program is distributed in the hope that it will be useful,
010 but WITHOUT ANY WARRANTY; without even the implied warranty of
011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012 GNU General Public License for more details.
013
014 You should have received a copy of the GNU General Public License
015 along with this program; if not, write to the Free Software
016 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
017
018
019 email: mraento@cs.helsinki.fi - petit@cs.helsinki.fi
020 */
021
022
023 // ContextCommon.h
024
025
026 #ifndef __NOTIFYCOMMON__
027 #define __NOTIFYCOMMON__
028
029 #include <e32base.h>
030
031
032 //--------------------- SERVER PANICS --------------------
033
034 //Panic Category
035 _LIT(KContextNotify, "ContextNotify");
036
037 //Panic Codes
038 enum TContextNotifyPanic
039 {
040 EBadRequest,
041 EBadDescriptor,
042 ESrvCreateServer,
043 ECreateTrapCleanup
044 };
045
046
047 //--------------------- SERVER PARAM --------------------
048
049 _LIT(KContextNotifyName,"myContextNotify");
050 _LIT(KContextNotifySemaphoreName, "AmyContextNotifySemaphore");
051
052 //the server version. A version must be specified when
053 //creating a session with the server
054 const TUint KContextNotifyMajorVersionNumber=0;
055 const TUint KContextNotifyMinorVersionNumber=1;
056 const TUint KContextNotifyBuildVersionNumber=1;
057
058
059 //opcodes used in message passing between client and server
060 enum TContextNotifyRqst
061 {
062 ETerminateContextNotify,
063 EAddIcon,
064 ERemoveIcon,
065 EChangeIcon,
066
067 ECancel
068
069 };
070
071 //opcodes used by server to indicate which asynchronous service
072 //has completed
073 enum TContextNotifyRqstComplete
074 {
075 ERequestCompleted = 1,
076 EContextNotifyTerminated = -4
077 };
078
079
080 #endif // __NOTIFYCOMMON__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -