#include <sacls.h>

// ...

TInt blad = KErrNone, stanSieci = 0;
blad = RProperty::Get( KUidSystemCategory, KUidNetworkStatusValue, stanSieci );

if( blad == KErrNone && stanSieci != KErrUnknown )
    {
    if( stanSieci == ESANetworkAvailable )
        {
        // Sie jest dostpna.
        }
    else 
        {
        // Sie jest niedostpna.
        }
    }
