{- Copyright © Jon Kristensen, 2010-2011. This file is part of Pontarius Media Server. Pontarius Media Server is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Pontarius Media Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Pontarius Media Server. If not, see . -} import Media.XPMN.Server.DirectoryDevice import qualified Media.XPMN.Server.ObjectServer as MSXO import qualified Media.XPMN.Server.Object as MSXO_ host = "test.pontarius.org" user = "sprint1" server = "test.pontarius.org" port = 5222 resource = "pontarius" password = "" main :: IO () main = do (osw, osr) <- MSXO.start "Directory" start host user server port resource password osw osr -- osw $ MSXO.OSIEPersistObject (MSXO_.container Nothing Nothing) -- osw $ MSXO.OSIEPersistObject (MSXO_.item Nothing Nothing Nothing Nothing) -- osw $ MSXO.OSIEUpdateObject "82c2cae1-b7b4-248e-ede6-9792419a1576" (MSXO_.item Nothing Nothing Nothing Nothing) -- osw $ MSXO.OSIEGetObject "82c2cae1-b7b4-248e-ede6-9792419a1576" -- osw $ MSXO.OSIEGetRoot -- osw $ MSXO.OSIEGetChildren "82c2cae1-b7b4-248e-ede6-9792419a1576" -- TODO: Allow the user to press Enter to exit. return ()