utilities/serviceipcserver/platform/s60/serviceipcserversymbianserver_p.h
changeset 16 3c88a81ff781
equal deleted inserted replaced
14:6aeb7a756187 16:3c88a81ff781
       
     1 /**
       
     2    This file is part of CWRT package **
       
     3 
       
     4    Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). **
       
     5 
       
     6    This program is free software: you can redistribute it and/or modify
       
     7    it under the terms of the GNU (Lesser) General Public License as
       
     8    published by the Free Software Foundation, version 2.1 of the License.
       
     9    This program is distributed in the hope that it will be useful, but
       
    10    WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
       
    12    (Lesser) General Public License for more details. You should have
       
    13    received a copy of the GNU (Lesser) General Public License along
       
    14    with this program. If not, see <http://www.gnu.org/licenses/>.
       
    15 */
       
    16 
       
    17 
       
    18 #ifndef serviceipcserversymbianserver_p_h
       
    19 #define serviceipcserversymbianserver_p_h
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <QtCore>
       
    23 #include "serviceipcserver.h"
       
    24 #include "serviceipcserver_p.h"
       
    25 
       
    26 namespace WRT {
       
    27     class MServiceIPCObserver;
       
    28     
       
    29     class CServiceSymbianServer : public CPolicyServer,
       
    30                     public ServiceFwIPCServerPrivate
       
    31     {
       
    32     public:
       
    33     
       
    34         static CServiceSymbianServer* NewL();
       
    35     
       
    36         virtual ~CServiceSymbianServer();
       
    37         
       
    38         void addSession();
       
    39         
       
    40         void closeSession();  
       
    41     
       
    42         // From ServiceFwIPCServerPrivate
       
    43     protected:
       
    44     
       
    45         bool listen(const QString& aServerName);
       
    46     
       
    47         void disconnect();
       
    48         
       
    49         void configIpcServerLifetime(bool aKeepServer);
       
    50     
       
    51         // From CPolicyServer
       
    52     protected:
       
    53     
       
    54         CSession2* NewSessionL(const TVersion& aVersion,
       
    55                                const RMessage2& aMessage) const;
       
    56     
       
    57     private:
       
    58     
       
    59         CServiceSymbianServer();
       
    60     
       
    61         void ConstructL();
       
    62     
       
    63     private:
       
    64         // data
       
    65         MServiceIPCObserver* m_observer;
       
    66         int m_sessionCount;
       
    67         bool m_keepServer;
       
    68     };
       
    69 }
       
    70 #endif // serviceipcserversymbianserver_p_h