javaextensions/wma/sms_cbs/pushplugin/sms/src.s60/smsserverconnection.cpp
changeset 35 85266cc22c7f
parent 23 98ccebc37403
child 47 f40128debb5d
equal deleted inserted replaced
26:dc7c549001d5 35:85266cc22c7f
    70     delete mMessage;
    70     delete mMessage;
    71     delete mFilterDes;
    71     delete mFilterDes;
    72     delete mOpenMonitor;
    72     delete mOpenMonitor;
    73 }
    73 }
    74 
    74 
    75 void SmsServerConnection::open(ConnectionListener* aListener,
    75 OS_EXPORT void SmsServerConnection::open(ConnectionListener* aListener,
    76                                bool aIsAppLaunched)
    76                                bool aIsAppLaunched)
    77 {
    77 {
    78     JELOG2(EWMA);
    78     JELOG2(EWMA);
    79     mIsAppLaunched = aIsAppLaunched;
    79     mIsAppLaunched = aIsAppLaunched;
    80     SmsServerConnection::open(aListener);
    80     SmsServerConnection::open(aListener);
   297         User::LeaveIfError(mSocketServer.ShareAuto());
   297         User::LeaveIfError(mSocketServer.ShareAuto());
   298     }
   298     }
   299 }
   299 }
   300 
   300 
   301 
   301 
   302 void SmsServerConnection::close()
   302 OS_EXPORT void SmsServerConnection::close()
   303 {
   303 {
   304     JELOG2(EWMA);
   304     JELOG2(EWMA);
   305     // the close and RunL are synchronized to make it SMP safe.
   305     // the close and RunL are synchronized to make it SMP safe.
   306     if (mState != EExit && mIsListening)
   306     if (mState != EExit && mIsListening)
   307     {
   307     {