blob: 9464195918291851dc14f632d00420a252267838 [file] [log] [blame]
Yingdi Yu614db142013-10-09 16:35:53 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2013, Regents of the University of California
4 * Yingdi Yu
5 *
6 * BSD license, See the LICENSE file for more information
7 *
8 * Author: Yingdi Yu <yingdi@cs.ucla.edu>
9 */
10
11#include <QApplication>
Yingdi Yudef90612013-10-09 22:34:42 -070012#include <QSystemTrayIcon>
Yingdi Yu614db142013-10-09 16:35:53 -070013
14#include "chronochat.h"
Yingdi Yu9e0dc292013-10-10 11:39:45 -070015#include "contactpanel.h"
Yingdi Yu0a6b6c52013-10-15 17:54:00 -070016#include "contact-storage.h"
Yingdi Yuaa8d7692013-10-18 17:05:02 -070017#include "dns-storage.h"
Yingdi Yu0b82a4e2013-10-18 11:29:25 -070018#include "contact-manager.h"
Yingdi Yu0a6b6c52013-10-15 17:54:00 -070019#include <ndn.cxx/security/identity/identity-manager.h>
20#include <ndn.cxx/security/identity/osx-privatekey-storage.h>
21#include <ndn.cxx/security/identity/basic-identity-storage.h>
22
23using namespace ndn;
Yingdi Yu614db142013-10-09 16:35:53 -070024
25int main(int argc, char *argv[])
26{
27 QApplication app(argc, argv);
28
Yingdi Yudef90612013-10-09 22:34:42 -070029
30// app.setWindowIcon(QIcon("/Users/yuyingdi/Develop/QT/demo.icns"));
31// // #else
32// // app.setWindowIcon(QIcon("/Users/yuyingdi/Develop/QT/images/icon_large.png"));
33// // #endif
Yingdi Yu614db142013-10-09 16:35:53 -070034
Yingdi Yuaa8d7692013-10-18 17:05:02 -070035 Ptr<ContactStorage> contactStorage = Ptr<ContactStorage>(new ContactStorage());
36 Ptr<DnsStorage> dnsStorage = Ptr<DnsStorage>(new DnsStorage());
37 Ptr<ContactManager> contactManager = Ptr<ContactManager>(new ContactManager(contactStorage, dnsStorage));
Yingdi Yu0b82a4e2013-10-18 11:29:25 -070038
Yingdi Yuaa8d7692013-10-18 17:05:02 -070039 ContactPanel contactPanel(contactManager);
Yingdi Yu614db142013-10-09 16:35:53 -070040
Yingdi Yu9e0dc292013-10-10 11:39:45 -070041 contactPanel.show ();
42 contactPanel.activateWindow ();
43 contactPanel.raise ();
Yingdi Yu614db142013-10-09 16:35:53 -070044
45 return app.exec();
46}