public PhonebookStorageQueryResult QueryPhonebookStorageStatus(PhonebookStorage storage) { CpbsSet(storage); return CpbsQueryCurrentStoreStatus(); }
/// <summary> /// Create a new instance of Phonebook /// </summary> /// <param name="sim">Parent Sim</param> /// <param name="storage">Storage identifier</param> internal Phonebook(Sim sim, PhonebookStorage storage) { m_sim = sim; m_storage = storage; }
public IEnumerable<PhonebookEntry> QueryPhonebook(PhonebookStorage storage, int startIndex, int endIndex) { CpbsSet(storage); return PhonebookEntry.Parse(GetATCommandResponse(string.Format("AT+CPBR={0},{1}\r", startIndex, endIndex))); }
private static extern uint SimWritePhonebookEntry( IntPtr hSim, // @parm Points to a valid HSIM handle PhonebookStorage dwLocation, // @parm A SIMPBSTORAGE_* Constant uint dwIndex, // @parm Index of the entry to retrieve (may be SIM_PBINDEX_FIRSTAVAILABLE) byte[] lpPhonebookEntry // @parm Points to a phonebook entry structure );
private static extern uint SimDeletePhonebookEntry( IntPtr hSim, // @parm Points to a valid HSIM handle PhonebookStorage dwLocation, // @parm A SIMPBSTORAGE_* Constant uint dwIndex // @parm Index of the entry to retrieve );
private static extern uint SimGetPhonebookStatus( IntPtr hSim, // @parm Points to a valid HSIM handle PhonebookStorage dwLocation, // @parm A SIMPBSTORAGE_* Constant ref int lpdwUsed, // @parm Nubmer of used locations ref int lpdwTotal // @parm Total number of locations );
private static extern uint SimGetPhonebookStatus( IntPtr hSim, // @parm Points to a valid HSIM handle PhonebookStorage dwLocation, // @parm A SIMPBSTORAGE_* Constant ref int lpdwUsed, // @parm Nubmer of used locations ref int lpdwTotal // @parm Total number of locations );
public PhonebookStorageQueryResult QueryPhonebookStorageStatus(PhonebookStorage storage) { CpbsSet(storage); return(CpbsQueryCurrentStoreStatus()); }
public IEnumerable <PhonebookEntry> QueryPhonebook(PhonebookStorage storage, int startIndex, int endIndex) { CpbsSet(storage); return(PhonebookEntry.Parse(GetATCommandResponse(string.Format("AT+CPBR={0},{1}\r", startIndex, endIndex)))); }
private void CpbsSet(PhonebookStorage storage) { var storageCode = storage == PhonebookStorage.Memory ? "ME" : "SM"; EnsureSuccessResponse(GetATCommandResponse(string.Format("AT+CPBS=\"{0}\"\r", storageCode))); }
public PhonebookStorageQueryResult(PhonebookStorage storageType, int usedLocations, int totalLocations) { StorageType = storageType; UsedLocations = usedLocations; TotalLocations = totalLocations; }
/// <summary> /// Create a new instance of Phonebook /// </summary> /// <param name="sim">Parent Sim</param> /// <param name="storage">Storage identifier</param> internal Phonebook(Sim sim, PhonebookStorage storage) { m_sim = sim; m_storage = storage; }
private static extern uint SimDeletePhonebookEntry( IntPtr hSim, // @parm Points to a valid HSIM handle PhonebookStorage dwLocation, // @parm A SIMPBSTORAGE_* Constant uint dwIndex // @parm Index of the entry to retrieve );
private static extern uint SimWritePhonebookEntry( IntPtr hSim, // @parm Points to a valid HSIM handle PhonebookStorage dwLocation, // @parm A SIMPBSTORAGE_* Constant uint dwIndex, // @parm Index of the entry to retrieve (may be SIM_PBINDEX_FIRSTAVAILABLE) byte[] lpPhonebookEntry // @parm Points to a phonebook entry structure );
private void CpbsSet(PhonebookStorage storage) { var storageCode = storage == PhonebookStorage.Memory ? "ME" : "SM"; EnsureSuccessResponse(GetATCommandResponse(string.Format("AT+CPBS=\"{0}\"\r", storageCode))); }
private static extern uint SimReadPhonebookEntry( IntPtr hSim, // @parm Points to a valid HSIM handle PhonebookStorage dwLocation, // @parm A SIMPBSTORAGE_* Constant uint dwIndex, // @parm Index of the entry to retrieve byte[] lpPhonebookEntry // @parm Points to a phonebook entry structure );
public PhonebookStorageQueryResult(PhonebookStorage storageType, int usedLocations, int totalLocations) { StorageType = storageType; UsedLocations = usedLocations; TotalLocations = totalLocations; }
private static extern uint SimReadPhonebookEntry( IntPtr hSim, // @parm Points to a valid HSIM handle PhonebookStorage dwLocation, // @parm A SIMPBSTORAGE_* Constant uint dwIndex, // @parm Index of the entry to retrieve byte[] lpPhonebookEntry // @parm Points to a phonebook entry structure );