javaextensions/centralrepository/javasrc/com/nokia/mj/impl/cenrep/CentralRepositoryImpl.java
changeset 87 1627c337e51e
parent 67 63b81d807542
equal deleted inserted replaced
80:d6dafc5d983f 87:1627c337e51e
   112     public void close() throws CentralRepositoryException
   112     public void close() throws CentralRepositoryException
   113     {
   113     {
   114         synchronized (this)
   114         synchronized (this)
   115         {
   115         {
   116 
   116 
   117             if (iState != CLOSED)
   117             if (iState != CLOSED && iState == OPEN)
   118             {
   118             {
   119                 iState = CLOSED;
   119                 iState = CLOSED;
   120                 _close(iFunctionSourceHandle, iCenrepHandle);
   120                 _close(iFunctionSourceHandle, iCenrepHandle);
   121                 _dispose(iFunctionSourceHandle, iCenrepHandle);
   121                 _dispose(iFunctionSourceHandle, iCenrepHandle);
   122             }
   122             }
   327         int aFunctionSourceHandle,
   327         int aFunctionSourceHandle,
   328         int cenrepHandle,
   328         int cenrepHandle,
   329         long key,
   329         long key,
   330         int value);
   330         int value);
   331 
   331 
       
   332    
   332 
   333 
   333     /**
   334     /**
   334      * Checks if MIDlet is permited to access the central repository.
   335      * Checks if MIDlet is permited to access the central repository.
   335      * Only MIDlets in manufacturer or operator domain are allowed.
   336      * Only MIDlets in manufacturer or operator domain are allowed.
   336      * @throws CentralRepositoryException if MIDlet is not in manufacturer or
   337      * @throws CentralRepositoryException if MIDlet is not in manufacturer or