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

📄 contextnotifysession.h

📁 手机待机浮动窗口
💻 H
字号:
001 /*
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 //CContextNotifySession.h
024 #ifndef __CCONTEXTNOTIFYSESSION__
025 #define __CCONTEXTNOTIFYSESSION__
026 
027 #include <e32base.h>
028 #include "ContextNotify.h"
029 #include "list.h"
030 
031 class CContextNotifySession : public CSession
032 {
033 
034 public: 
035         static CContextNotifySession* NewL(RThread& aClient, CContextNotify& aServer);
036         static CContextNotifySession* NewLC(RThread& aClient, CContextNotify& aServer);
037         ~CContextNotifySession();
038         
039         void ServiceL(const RMessage& aMessage);
040 
041 private:
042         CContextNotifySession(RThread& aClient, CContextNotify& aServer);
043         void ConstructL() ;
044         void PanicClient(TInt aPanic) const;
045 
046         void TerminateContextNotify(const RMessage& aMessage);
047 
048         void CompleteMessage(TInt Code);
049 
050         void AddIcon();
051         void RemoveIcon();
052         void ChangeIcon();
053 public: 
054         void NotifyEvent(CContextNotify::TEvent aEvent);
055         void ReportError(TContextNotifyRqstComplete aErrorType, TDesC & aErrorCode, TDesC & aErrorValue);
056 private: 
057         
058         RMessage            iMessage; TInt iMessageThreadId;
059         void SetMessage(const RMessage& aMsg);
060         CContextNotify&     iServer;
061         CList<TInt>             *iIds;
062 };
063 
064 #endif

⌨️ 快捷键说明

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